{"action":"opened","issue":{"url":"https://api.github.com/repos/scala-academy/castalia/issues/22","labels_url":"https://api.github.com/repos/scala-academy/castalia/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/scala-academy/castalia/issues/22/comments","events_url":"https://api.github.com/repos/scala-academy/castalia/issues/22/events","html_url":"https://github.com/scala-academy/castalia/issues/22","id":121028336,"number":22,"title":"As a stubserver consumer I want to be able to specify which stub config files should be used by the server in the server configuration file","user":{"login":"jordi133","id":6985599,"avatar_url":"https://avatars.githubusercontent.com/u/6985599?v=3","gravatar_id":"","url":"https://api.github.com/users/jordi133","html_url":"https://github.com/jordi133","followers_url":"https://api.github.com/users/jordi133/followers","following_url":"https://api.github.com/users/jordi133/following{/other_user}","gists_url":"https://api.github.com/users/jordi133/gists{/gist_id}","starred_url":"https://api.github.com/users/jordi133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordi133/subscriptions","organizations_url":"https://api.github.com/users/jordi133/orgs","repos_url":"https://api.github.com/users/jordi133/repos","events_url":"https://api.github.com/users/jordi133/events{/privacy}","received_events_url":"https://api.github.com/users/jordi133/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T15:17:55Z","updated_at":"2015-12-08T15:17:55Z","closed_at":null,"body":"given that a stubserver config file with name \"castalia.json\" is on the classpath\nand \"castalia.json\" contains a property \"stubs\" with value [\"stub1.json\", \"stub2.json\"]\nand files \"stub1.json\" and \"stub2.json\" are both on the classpath\nwhen I do a HTTP GET to the endpoint as configured in \"stub1.json\"\nthen the response should be as configured in \"stub1.json\"\n\ngiven that a stubserver config file with name \"castalia.json\" is on the classpath\nand \"castalia.json\" contains a property \"stubs\" with value [\"stub1.json\", \"stub2.json\"]\nand files \"stub1.json\" and \"stub2.json\" are both on the classpath\nwhen I do a HTTP GET to the endpoint as configured in \"stub2.json\"\nthen the response should be as configured in \"stub2.json\"\n\ngiven that a stubserver config file with name \"castalia.json\" is on the classpath\nand \"castalia.json\" contains a property \"stubs\" with value [\"stub1.json\", \"stub2.json\"]\nand both \"stub1.json\" and \"stub2.json\" define the same endpoint\nwhen the stubserver is started with command line argument \"stub1.json stub2.json\"\nthen the stubserver should not start successfully, giving a meaningful error message"}}