happy to help
happy to help

Reputation: 93

How to write integration tests for dropwizard

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?

Upvotes: 2

Views: 890

Answers (1)

happy to help
happy to help

Reputation: 93

Apparently it can be done using DropwizardServiceRule

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

server.startIfRequired()

Upvotes: 3

Related Questions