GOV.UK Verify has closed
This repository is out of date and has been archived
JUnit Runner implementation that starts up DropwizardTestSupport applications globally based on the provided configuration
@RunWith(DropwizardJunitRunner.class)
@DropwizardConfig(app = MyApp.class, config = configClasspathLocation)
public class MyClassTest {
@DropwizardPortValue
private int port;
@Test
public void exampleTestThatExpectsADropwizardAppRunningBeforeExecuted() throws Exception {
given().get(create("http://localhost:" + port + "/test"))
.then()
.statusCode(200);
}
}- 0.0.1
- Work in progress
- GOV.UK Pay
Distributed under the MIT license. See LICENSE for more information.
- Fork it (https://github.com/alphagov/dropwizard-junit-runner/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request