-
Bug
-
Resolution: Done
-
Major
-
7.7.0.GA
-
None
-
CR1
-
-
-
-
-
-
CR2
-
Workaround Exists
-
-
Tests in backend module of optaweb employee rostering are not found due to productized version of junit on classpath:
junit:junit:jar:4.12.0.redhat-003
Surefire plugin' log puts some light on what is happening:
-----------------------------------------------------------------------
- Created at 2020-02-25T08:51:03.388
Feb 25, 2020 8:51:03 AM org.junit.platform.launcher.core.DefaultLauncher handleThrowable
- Created at 2020-02-25T08:51:03.388
WARNING: TestEngine with ID 'junit-vintage' failed to discover tests
- Created at 2020-02-25T08:51:03.388
org.junit.platform.commons.JUnitException: Failed to parse version of junit:junit: 4.12.0.redhat-003
-----------------------------------------------------------------------
There is junit5 on classpath as well, pulled by org.springframework.boot:spring-boot-starter-test. As the junit5 platform tries to bootstrap junit4 engine, it fails to parse its version.