Testing 如何为dropwizard编写集成测试
我正在用dropwizard开发一个应用程序,我需要用存根启动我的应用程序,并运行一些集成测试Testing 如何为dropwizard编写集成测试,testing,integration,dropwizard,Testing,Integration,Dropwizard,我正在用dropwizard开发一个应用程序,我需要用存根启动我的应用程序,并运行一些集成测试 有人知道相同的测试框架吗?显然可以使用DropwizardServiceRule来完成 DropwizardServiceRule<ServerConfiguration> server = new DropwizardServiceRule<ServerConfiguration>(Main.class, this.getClass().getResource("/confi
有人知道相同的测试框架吗?显然可以使用DropwizardServiceRule来完成
DropwizardServiceRule<ServerConfiguration> server = new DropwizardServiceRule<ServerConfiguration>(Main.class, this.getClass().getResource("/config-samples/test-integration-server-config.yml").getPath())
server.startIfRequired()
DropwizardServiceRule服务器=新的DropwizardServiceRule(Main.class,this.getClass().getResource(“/config samples/test integration server config.yml”).getPath())
server.startIfRequired()