Skip to content
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

Update pom.xml for JUnit 5 and Mockito #872

Closed
rsoika opened this issue Sep 4, 2024 · 0 comments
Closed

Update pom.xml for JUnit 5 and Mockito #872

rsoika opened this issue Sep 4, 2024 · 0 comments
Labels
Milestone

Comments

@rsoika
Copy link
Member

rsoika commented Sep 4, 2024

  • Remove the JUnit 4 Dependency: Since your tests are written with JUnit 5 annotations, you can remove the JUnit 4 dependency.
  • Add JUnit 5 Dependencies: Add the JUnit 5 dependencies for the platform (junit-jupiter), including the engine to run the tests.
  • Ensure Mockito Compatibility: You are already using the mockito-junit-jupiter dependency, which is compatible with JUnit 5. Keep this dependency to ensure your Mockito tests run correctly.
  • Update the Surefire Plugin Configuration: The maven-surefire-plugin must be set up to support JUnit 5. By default, Surefire 2.22.0 and above supports JUnit 5, but we'll make sure it's explicitly configured.
@rsoika rsoika added the feature label Sep 4, 2024
@rsoika rsoika added this to the 6.1.0 milestone Sep 4, 2024
rsoika added a commit that referenced this issue Sep 4, 2024
@rsoika rsoika closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant