de.leanovate.swaggercheck.playhelper
Generates many requests and tests the responses.
Excerpt from example application:
class ThingsControllerSpec("./ThingApi.yaml")({ val mockedData: ThingRepository = new ThingRepository { ... } new GuiceApplicationBuilder() .overrides(bind[ThingsRepository].toInstance(mockThingsRepository)) .build() })
path the swagger specification file (relative to the test runner)
a play application probably with mocked databases and rest calls
Generates many requests and tests the responses.
Excerpt from example application: