Integration testing of dropwizard applications

Dropwizard is a good choice when it comes to quickly develop RESTful web services. Say goodbye to application containers, the result is a self contained executable JAR which can be run in any environment without worrying about differences in installed libraries. However, we ran into some difficulties when trying to perform integration tests on our applications.
The official documentation suggests using a JUnit class rule. It is fine, but also comes with major drawbacks:

Better Debian packages with Docker

Let’s explore a way to configure a maven java project so that integration tests execute against code running as docker containers. We’ll see how it allows us not only to test application code in a state closer to an actual deployment, but also to exercise more packaging moving parts as part of the tests.


Welcome to the Blog of the Dhatim Engineering team. We are developing a software platform to help organizations to better understand their spendings, to identify savings opportunities and to automate the actions that perform thoses savings. We are creating a full-stack platform by mixing a number of well-known technologies (SQL database, OCR, Containerization, …) with the latest science progress such as natural language processing, machine learning or encryption.