Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

alphagov/dropwizard-junit-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropwizard JUnit Runner

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

Usage example

@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);
    }
}

Release History

  • 0.0.1
    • Work in progress

Meta

Distributed under the MIT license. See LICENSE for more information.

Government Digital Service

Contributing

  1. Fork it (https://github.com/alphagov/dropwizard-junit-runner/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages