Use JUnit 5 in Maven build.
<junit.version>5.0.0</junit.version>
<assertj.version>3.8.0</assertj.version>
<mockito.version>2.9.0</mockito.version>
+
+ <!-- Maven Plug-ins Configuration -->
+ <surefire.maven.plugin>2.19.1</surefire.maven.plugin>
+ <junit.surefire.provider>1.0.0</junit.surefire.provider>
</properties>
<dependencies>
</executions>
</plugin>
</plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${surefire.maven.plugin}</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.junit.platform</groupId>
+ <artifactId>junit-platform-surefire-provider</artifactId>
+ <version>${junit.surefire.provider}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>${junit.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </pluginManagement>
</build>
</project>
