Problem
AEM Mocks up to version 2.2 only supported JUnit 4. With Version 2.3.0 and up you can choose between JUnit 4 or JUnit 5, or use tests of both side-by-side.
This article describes how to migrate your unit tests using AEM Mocks and JUnit 4 to JUnit 5.
See also: adaptTo Talk 2018: JUnit 5 and Sling/AEM Mocks
Solution
TBD
Related articles