2

I am developing an application with dropwizard and I need to start my application with stubs and run some integration tests.

Is anyone aware of test framework for the same?

4

1 回答 1

3

显然它可以使用 DropwizardServiceRule 来完成

DropwizardServiceRule<ServerConfiguration> server = new DropwizardServiceRule<ServerConfiguration>(Main.class, this.getClass().getResource("/config-samples/test-integration-server-config.yml").getPath())

server.startIfRequired()
于 2013-07-16T19:57:57.937 回答