close

Filter

loading table of contents...

Release Notes / Version 10.2101

Table Of Contents

Third-Party Update: JUnit Jupiter, Mockito, and Maven Surefire

JUnit Jupiter has been updated to 5.5.1 and related JUnit Platform to 1.5.1. Dependency Management is now done via JUnit 5 BOM org.junit:junit-bom .

Along with that any usages of artifacts junit-jupiter-api , junit-jupiter-params , and junit-jupiter-engine has been replaced by aggregator artifact junit-jupiter . Dependency checks regarding used/unused dependencies for these artifacts have been disabled.

Maven Surefire and Failsafe Plugin have been updated to version 2.22.2 as recommended by JUnit Jupiter Developers.

Due to these changes it is required to add the JUnit Vintage Engine to all modules running legacy JUnit 4 tests:

<dependency>
  <groupId>org.junit.vintage</groupId>
  <artifactId>junit-vintage-engine</artifactId>
  <scope>test</scope>
</dependency>

as otherwise Surefire will not be able to detect JUnit 4 tests to run. Thus, for your project modules ensure that you always combine the junit:junit artifact with the vintage engine as mentioned above.

In addition to that Mockito got updated from 2.23.4 to 3.0.0 to reduce the gap between JUnit (used by Mockito) and Mockito.

(CMS-14134)

Search Results

Table Of Contents