Skip to content

Migrate tests to JUnit5 - #236

Merged
jtnord merged 9 commits into
jenkinsci:masterfrom
strangelookingnerd:migrate_to_junit5
Oct 16, 2026
Merged

jtnord merged 9 commits into
jenkinsci:masterfrom
strangelookingnerd:migrate_to_junit5

Conversation

@strangelookingnerd

Copy link
Copy Markdown
Contributor

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

  • Migrate annotations and imports
  • Migrate assertions
  • Remove public visibility for test classes and methods
  • Minor clean up

I am well aware that this is a quite large changeset however I hope that there is still interest in this PR and it will be reviewed.
If there are any questions, please do not hesitate to ping me.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@strangelookingnerd
strangelookingnerd requested a review from a team as a code owner March 27, 2025 10:42
Comment on lines -100 to +87
assertThat(actual, is(actual));
assertThat(actual, is(expected));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

While I'm certain that assertThat(actual, is(actual)); was a typo and assertThat(actual, is(expected)); should be correct, it causes the test to fail. To me it seems like #listAllPublicRepositories is not returning all elements for reasons I do not understand.

@jtnord jtnord Oct 16, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pagination was broken -> 21e605f and amended in 262013d

* Migrate annotations and imports
* Migrate assertions
* Remove public visibility for test classes and methods
* Minor code cleanup
@strangelookingnerd

Copy link
Copy Markdown
Contributor Author

@jenkinsci/okhttp-api-plugin-developers Kindly requesting a review.

@jtnord
jtnord merged commit 8ec0970 into jenkinsci:master Oct 16, 2026
17 checks passed
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