Skip to content

[SDK-4366] Update to JUnit 5#546

Merged
jimmyjames merged 6 commits intomasterfrom
junit-5
Jun 22, 2023
Merged

[SDK-4366] Update to JUnit 5#546
jimmyjames merged 6 commits intomasterfrom
junit-5

Conversation

@jimmyjames
Copy link
Copy Markdown
Contributor

🧪 Test only change 🧪

This change updates the JUnit dependency used to write and execute tests from JUnit 4 to JUnit 5.

Note for reviewers

This is a large PR that impacts every test class in the library 😅. There's not any test logic changes, however. The changes can be summarized as:

  • Dependency bumps (obviously)
  • Renamed package imports to use JUnit 5
  • Removal of the removed ExpectedException Rule in favor of assertThrows. This is the bulk of the code changes.
  • Imports cleanup

It may be useful to review by looking at the individual commits, which roughly correlate to the above changes.

@jimmyjames jimmyjames requested a review from a team as a code owner June 21, 2023 21:37
@jimmyjames jimmyjames merged commit 9117b6c into master Jun 22, 2023
@jimmyjames jimmyjames deleted the junit-5 branch June 22, 2023 12:45
Copy link
Copy Markdown
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment on one of the tests


@Test
public void maxRequestsPerHostMustBePositive() {
HttpOptions opts = new HttpOptions();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess this test misses a verify statement

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.

3 participants