From 6157647a66f05ba337b3bce4c7ccc5b13f6be6c5 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Wed, 10 Jun 2026 14:56:19 +0000 Subject: [PATCH 1/4] 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 0a4a1572b5c49ed96bfd6377d511797aec04bac6 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Wed, 10 Jun 2026 17:10:08 +0000 Subject: [PATCH 2/4] 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 7a804df769b924568048c6d569ef99483dd3b30e Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Wed, 10 Jun 2026 18:26:14 +0000 Subject: [PATCH 3/4] 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 - - From 6b048a0700b666a05119dab27794bf5c55ecb7b3 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Tue, 7 Jul 2026 14:33:06 +0000 Subject: [PATCH 4/4] NIFI-15999 Renamed id and added suggesteed comments. --- pom.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0c72727..d76560e 100644 --- a/pom.xml +++ b/pom.xml @@ -182,8 +182,9 @@ org.apache.maven.plugins maven-dependency-plugin + - copy-mockito-agent + copy-mockito-core initialize copy @@ -205,6 +206,7 @@ org.apache.maven.plugins maven-surefire-plugin + -javaagent:${settings.localRepository}/org/mockito/mockito-core/${mockito.version}/mockito-core-${mockito.version}.jar