-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassNotFoundException: CleanupMode #2991
Comments
It might be because you depend on the BOM instead of importing it. See https://github.com/junit-team/junit5-samples/blob/main/junit5-jupiter-starter-maven/pom.xml for an example of how to import the BOM and depend on |
Had the exact same issue today. For me it was the mess in project with spring boot dependencies and overriding some versions here and there in the project. The issue is that current Spring Boot still use 5.8.2 which doesn't have this new class org.junit.jupiter.api.io.CleanupMode. |
Please note that the User Guide also documents how to upgrade the JUnit version used in a Spring Boot application. |
I didn't depend on the BOM but directly on |
When updating from 5.8.2 to 5.9.0, I get the following stack trace:
See t1/wunderbar#217
As the class is clearly there, I have no idea what's happening. Other projects can update without a problem.
Steps to reproduce
Just checkout the PR and run the tests in the
wunderbar.junit
module from IntelliJ. Maven fails, too, but the error message is not very helpful:TestEngine with ID 'junit-jupiter' failed to discover tests
Context
Deliverables
The text was updated successfully, but these errors were encountered: