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

Register mockito as a java agent #5261

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Feb 14, 2025

Identify the Bug or Feature request

Fixes #5215

Description of the Change

Incorporates the suggested fix from the Mockito documentation. This adds Mockito as a Java agent so that it can create mocks in tests without warnings.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Addressed a warning regarding use of Mockito in test cases

This change is Reviewable

Java is tightening things up, requiring Mockito to now be registered as a Java agent.
This gives all projects the same test configuration, includinig the previous Mockito fix.
@kwvanderlinde kwvanderlinde self-assigned this Feb 14, 2025
@github-actions github-actions bot added the code-maintenance Adding/editing javadocs, unit tests, formatting. label Feb 14, 2025
@cwisniew cwisniew added this pull request to the merge queue Feb 14, 2025
Merged via the queue into RPTools:develop with commit 5c84544 Feb 14, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-maintenance Adding/editing javadocs, unit tests, formatting.
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[Maintenance]: Warning from mockito and byte-buddy when running tests
2 participants