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

Migrate tests to JUnit5 #309

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

strangelookingnerd
Copy link
Contributor

In c05870d @garydgregory already began the transition towards JUnit5. This PR aims to finish that.

The main points and changes are

  • Use JUnit5 annotations
  • Use JUnit5 Assertions and Assumptions
  • Remove public visibility from tests classes and methods (best-practise)
  • Remove junit-vintage-engine dependency as it is no longer required

I validated that all tests succeeded before and after my changes and the overall number of tests did not change. Test coverage is also identical.

There are some oddly formatted classes - I tried my very best to keep the original formatting intact to minimize the changeset.

* use JUnit5 annotations
* use JUnit5 Assertions and Assumptions
* remove public visibility from tests
* remove junit-vintage-engine dependency
@tvand tvand merged commit 495d096 into apache:master Nov 15, 2024
13 checks passed
@strangelookingnerd strangelookingnerd deleted the migrate_to_junit5 branch November 15, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants