scala-academy / castalia

API stub server
Other
8 stars 3 forks source link

As a stubserver consumer I want to be able to specify in command line arguments which stub config files should be used by the server #11

Closed jordi133 closed 8 years ago

jordi133 commented 8 years ago

given that the stubserver is started with command line argument "stub1.json stub2.json" and files "stub1.json" and "stub2.json" are both on the classpath when I do a HTTP GET to the endpoint as configured in "stub1.json" then the response should be as configured in "stub1.json"

given that the stubserver is started with command line argument "stub1.json stub2.json" and files "stub1.json" and "stub2.json" are both on the classpath when I do a HTTP GET to the endpoint as configured in "stub2.json" then the response should be as configured in "stub2.json"

given that files "stub1.json" and "stub2.json" are both on the classpath and both "stub1.json" and "stub2.json" define the same endpoint when the stubserver is started with command line argument "stub1.json stub2.json" then the stubserver should not start successfully, giving a meaningful error message