Skip to content

Commit d5b49da

Browse files
committed
add mockito as java agent during testing
1 parent 8c6a73c commit d5b49da

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@
155155
</execution>
156156
</executions>
157157
</plugin>
158+
<plugin>
159+
<groupId>org.apache.maven.plugins</groupId>
160+
<artifactId>maven-dependency-plugin</artifactId>
161+
<version>${mvn-dependency.version}</version>
162+
<executions>
163+
<execution>
164+
<id>jar-paths-to-properties</id>
165+
<goals>
166+
<goal>properties</goal>
167+
</goals>
168+
</execution>
169+
</executions>
170+
</plugin>
158171
<plugin>
159172
<groupId>org.codehaus.mojo</groupId>
160173
<artifactId>exec-maven-plugin</artifactId>
@@ -261,6 +274,9 @@
261274
<groupId>org.apache.maven.plugins</groupId>
262275
<artifactId>maven-surefire-plugin</artifactId>
263276
<version>${mvn-surefire.version}</version>
277+
<configuration>
278+
<argLine>-javaagent:"${org.mockito:mockito-core:jar}"</argLine>
279+
</configuration>
264280
</plugin>
265281
<plugin>
266282
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)