scala-academy / castalia

API stub server
Other
8 stars 3 forks source link

StubConfig: 3rd and 4th parameter seem to be mutually exclusive #61

Open DieBauer opened 8 years ago

DieBauer commented 8 years ago

Tim: If I look at the actor creation in Receptionist, it seems to be that either responses should be filled or responseprovider should be filled. If this is the case maybe we can make them mutually exclusive using an Either (with something like Either[List[ResponseConfig], ResponseProviderConfig]. This way we can have proper coverage on the exception thrown in Receptionist because we don't need it anymore.