Skip to content

Commit ea66b35

Browse files
committed
Configure Mockito as Java agent
1 parent dafd821 commit ea66b35

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@
239239
<plugin>
240240
<groupId>org.apache.maven.plugins</groupId>
241241
<artifactId>maven-dependency-plugin</artifactId>
242+
<executions>
243+
<execution>
244+
<goals>
245+
<goal>properties</goal>
246+
</goals>
247+
</execution>
248+
</executions>
242249
</plugin>
243250

244251
<plugin>
@@ -282,6 +289,12 @@
282289
<plugin>
283290
<groupId>org.apache.maven.plugins</groupId>
284291
<artifactId>maven-surefire-plugin</artifactId>
292+
<configuration>
293+
<argLine>
294+
@{argLine}
295+
-javaagent:${org.mockito:mockito-core:jar}
296+
</argLine>
297+
</configuration>
285298
</plugin>
286299

287300
<plugin>

0 commit comments

Comments
 (0)