FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Migrate all tests to JUnit Jupiter by tumbarumba · Pull Request #424 · hamcrest/JavaHamcrest · GitHub

Migrate all tests to JUnit Jupiter - #424

Merged
tumbarumba merged 5 commits into
hamcrest:masterfrom
tumbarumba:drops-of-jupiter
Oct 12, 2024
Merged

Migrate all tests to JUnit Jupiter#424
tumbarumba merged 5 commits into
hamcrest:masterfrom
tumbarumba:drops-of-jupiter

Conversation

tumbarumba commented Oct 12, 2024
edited
Loading

Copy link
Copy Markdown
Member

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 merged commit 581d6ba into hamcrest:master Oct 12, 2024
tumbarumba deleted the drops-of-jupiter branch October 12, 2024 22:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL