January 2019
Beginner to intermediate
352 pages
8h
English
We have implemented our microservice, but it is extremely important to test it in order to improve its quality and make future code evolution easier.
Vert.x gives developers the opportunity to easily integrate JUnit in order to implement a strong test suite. In our example, we will implement an integration test in order to verify the good behaviour of our code, and to see it in action.
To use JUnit, you need to have these dependencies in your Maven pom.xml:
<dependency> <groupId>io.vertx</groupId> <artifactId>vertx-unit</artifactId> <scope>test</scope></dependency><dependency> <groupId>io.vertx</groupId> <artifactId>vertx-junit5</artifactId> <scope>test</scope></dependency><dependency> <groupId>org.junit.platform</groupId> ...
Read now
Unlock full access