Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See also: adaptTo Talk 2018: JUnit 5 and Sling/AEM Mocks

Solution

Surefire Version

  • Make sure to use the latest Version of the Maven Surefire Plugin

Dependencies in POM

Remove existing dependencies to JUnit 4 from your POMs:

...