Commit 65cf01e
fix(test): configure mockito as javaagent to suppress self-attach warning (kroxylicious#3579)
Add -javaagent arg for mockito-core to both maven-surefire-plugin and
maven-failsafe-plugin in the parent POM. This ensures Mockito is loaded
as a proper Java agent rather than self-attaching at runtime, which
eliminates the deprecation warning and prepares for future JDK versions
that will disallow dynamic agent loading.
Fixes kroxylicious#3576
Signed-off-by: Tanner Smith <griffonbyte@proton.me>
Co-authored-by: Sam Barker <sam@quadrocket.co.uk>1 parent c3860ee commit 65cf01e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
745 | 748 | | |
746 | 749 | | |
747 | 750 | | |
| |||
800 | 803 | | |
801 | 804 | | |
802 | 805 | | |
| 806 | + | |
803 | 807 | | |
804 | 808 | | |
805 | 809 | | |
| |||
0 commit comments