From 04b305f150de8690d15b3cf1a2e75af1e378bbf8 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Wed, 10 Jun 2026 14:56:19 +0000 Subject: [PATCH 1/3] NIFI-15999 Added Mockito as an agent to thereby not have Mockito self-attach to enable the inline-mock-maker. --- pom.xml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pom.xml b/pom.xml index df48eb6..810859b 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,8 @@ 5.23.0 7.23.0 2.2.46 + + @@ -178,6 +180,33 @@ + + org.apache.maven.plugins + maven-dependency-plugin + + + get-mockito-agent + initialize + + + properties + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + @{argLine} -javaagent:${org.mockito:mockito-core:jar} + + org.apache.rat apache-rat-plugin From 7c06996aec85f456fe90c7182cfcf692612cfb50 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Wed, 10 Jun 2026 17:10:08 +0000 Subject: [PATCH 2/3] NIFI-15999 Changed strategy of using agent to allow for running tests in IDE without the warning message. --- pom.xml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 810859b..8da9aa2 100644 --- a/pom.xml +++ b/pom.xml @@ -185,15 +185,21 @@ maven-dependency-plugin - get-mockito-agent + copy-mockito-agent initialize - - properties + copy + + + + org.mockito + mockito-core + ${project.build.directory}/agents + mockito-core.jar + + + @@ -201,10 +207,7 @@ org.apache.maven.plugins maven-surefire-plugin - - @{argLine} -javaagent:${org.mockito:mockito-core:jar} + -javaagent:${settings.localRepository}/org/mockito/mockito-core/${mockito.version}/mockito-core-${mockito.version}.jar From 6ffdc3c2f7ddfa35bd65c7c283fc0e791e821a7b Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Wed, 10 Jun 2026 18:26:14 +0000 Subject: [PATCH 3/3] NIFI-15999 Removed unused argLine property. --- pom.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8da9aa2..0c72727 100644 --- a/pom.xml +++ b/pom.xml @@ -85,8 +85,6 @@ 5.23.0 7.23.0 2.2.46 - -