Appendix A. Testing a Dropwizard Application

Our application is ready. However, if we respect its stability, we have to make sure that we at least have its most important aspects covered by unit tests. You are probably familiar with unit testing and JUnit, but Dropwizard takes this a little bit further.

The dropwizard-testing module includes everything you need, such as JUnit and FEST assertions, in order to create tests for your application, right from small unit tests to bigger, full-fledged tests.

Creating a complete test for the application

Let's create a complete, fully automated integration test for our application. This test should start our application as we would normally do for a manual test, and perform some HTTP requests to the application's ...

Get RESTful Web Services with Dropwizard now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.