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 all tests to JUnit Jupiter #424

Merged
merged 5 commits into from
Oct 12, 2024

Conversation

tumbarumba
Copy link
Member

@tumbarumba tumbarumba commented Oct 12, 2024

Hamcrest, as a long lived project, has an large amount of tests written in different versions of JUnit, ranging from JUnit 3 styles tests that extend org.junit.TestCase, to other tests that are annotated with org.junit.Test. This change migrates all tests to use JUnit Jupiter, so that is all tests are now annotated with org.junit.jupiter.api.Test.

In most cases, this is a simple change of imports, with a few exceptions:

  • Uses of assertTrue have been adjusted to allow for the description being the last parameter
  • org.hamcrest.AbstractMatcherTest has been moved to org.hamcrest.test.AbstractMatcherTest
  • Static assertion methods in AbstractMatcherTest have been moved to org.hamcrest.test.MatcherAssertions

@tumbarumba tumbarumba merged commit 581d6ba into hamcrest:master Oct 12, 2024
2 checks passed
@tumbarumba tumbarumba deleted the drops-of-jupiter branch October 12, 2024 22:09
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