February 2019
Intermediate to advanced
446 pages
10h 55m
English
Starting and stopping a Docker container can be done by adding the <execution> block in the docker-maven-plugin life cycle phase to the pom.xml file.
Next, the failsafe plugin can be configured to perform integration testing with Docker. This allows us to execute the integration tests. We are passing the service URL in the service.url tag so that our integration test can use it to perform integration testing.
We'll use the DockerIntegrationTest marker to mark our Docker integration tests. It is defined as follows:
package com.packtpub.mmj.restaurant.resources.docker;public interface DockerIT { // Marker for Docker integration Tests}
Please refer the <configuration> <phase> section inside the maven-failsafe-plugin ...
Read now
Unlock full access