Skip to content

a JUnit TestRunner that allows to load Dropwizard resources for testing

Notifications You must be signed in to change notification settings

federecio/dropwizard-junit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dropwizard-junit

a JUnit TestRunner that allows to load Dropwizard 0.7.1 resources for testing

NOTE: the project's group id has been changed io.federecio and therefore all packages have been renamed accordingly

License

http://www.apache.org/licenses/LICENSE-2.0

How to use it

  • Add the Maven dependency (now available in Maven Central!)

      <dependency>
          <groupId>io.federecio</groupId>
          <artifactId>dropwizard-junit</artifactId>
          <version>0.5</version>
          <scope>test</scope>
      </dependency>
    

Note: you will need to add the junit dependency to your project

  • Write your tests

      @RunWith(DropwizardJunitRunner.class)
      @DropwizardTestConfig(applicationClass = YourServiceClass.class, yamlFile = "/yourconfig.yaml")
      public class YourTest {
          // cool tests here - your Dropwizard service has been started
      }
    

Contributors

About

a JUnit TestRunner that allows to load Dropwizard resources for testing

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages