Skip to content

Conversation

@strangelookingnerd
Copy link
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

There are 3 exceptions where a migration was not possible as the tests rely on Rule implementations that have not (yet) been migrated to JUnit5:

  • EddsaTest using RealJenkinsRule
  • EddsaTestWithFreestyleProject using RealJenkinsRule
  • FIPSComplianceCheckTest using RealJenkinsRule

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

* Migrate annotations and imports
* Migrate assertions
* Remove public visibility for test classes and methods
* Minor code cleanup
@strangelookingnerd strangelookingnerd requested a review from a team as a code owner March 21, 2025 12:48
Copy link
Member

@jtnord jtnord left a comment

Choose a reason for hiding this comment

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

Thanks for this, however the majority of the code here is a fork and we do not rally wish to maintain it or deviate it from the upstream over the security fix that was done (the reason it is here).

Additionally we may be likely to pull this code out of the plugin to a separate library in the near future.

The eddsa library is crypto sensitive and as such I would not want to risk the possibility of introducing any regressions.
this plugin is also only here until plugins have migrated away to a modern maintained alternative (either bouncycastle or JDK15+)

@jtnord jtnord closed this Mar 21, 2025
@strangelookingnerd strangelookingnerd deleted the migrate_to_junit5 branch March 21, 2025 12:59
@strangelookingnerd
Copy link
Contributor Author

Noting https://github.com/testcontainers/testcontainers-java/releases/tag/2.0.0 dropping JUnit 4 support blocking #35

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