Details
-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
Description
Environment (Required on creation):
- Use the JUnit 5 extension to write a test
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
- The JUnit 5 extension uses the engine's TestHelper class for common logic shared between the JUnit 4 rule and the extension
- This class uses org.junit.Assert from JUnit 4
Steps to reproduce (Required on creation):
- Run a test that makes use of a TestHelper method that uses the Assert methods, e.g.
@RegisterExtension ProcessEngineExtension extension = ProcessEngineExtension.builder() .ensureCleanAfterTest(true) .build();
Observed Behavior (Required on creation):
- Test fails with a ClassNotFoundException
Expected behavior (Required on creation):
- Test succeeds
Root Cause (Required on prioritization):
Solution Ideas (Optional):
- TestHelper should not use JUnit 4 classes
- Workaround: Add a dependency to junit-vintage-engine to the test project
Hints (optional):
- Not kinds of usage is affected, only those cases that lead to execution of TestHelper methods that make use of Assert