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 #1825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

strangelookingnerd
Copy link

This PR aims to migrate all tests to JUnit5. Changes include:

  • Replace annotations with JUnit5 equivalents
  • Use JUnit5 Assertions (and statically import them)
  • Upgrade to XMLUnit 2.x to support JUnit5
  • Clean-up some assertions (flipped arguments, simplifications)

The only exceptions are tests suites in jaxb.osgi_test that rely on org.apache.felix.ipojo.junit4osgi.OSGiTestSuite for which there seems to be no equivalent that is compatible with JUnit5.

Verified with mvn clean install that build passes before and after my changes.
Overall number of tests and coverage did not change.

I am well aware that the changeset is rather big but still hope that it is managable to review. Please let me know if there are any further questions to my changes.

* Replace annotations with JUnit5 equivalents
* Use JUnit5 Assertions (and statically import them)
* Upgrade to XMLUnit 2.x to support JUnit5
* Clean-up some assertions (flipped arguments, simplifications)
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.

1 participant