Skip to content

Commit

Permalink
Legger inn Mockito som javaagent etter beskrivelse fra Mockito (#780)
Browse files Browse the repository at this point in the history
Det kommer en warning i loggen under bygging. Har testet med en
applikasjon og følgt oppskrift fra Mockito
https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3
  • Loading branch information
mrsladek authored Oct 19, 2024
1 parent 838137f commit c52a95c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.8.0</version>
<executions>
<execution>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -514,7 +521,7 @@
<version>3.5.1</version>
<configuration>
<!-- Må ha @{argLine} ellers blir properties satt av jacoco-maven-plugin overkrevet -->
<argLine>@{argLine} ${argLine}</argLine>
<argLine>@{argLine} ${argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
</configuration>
</plugin>
<!-- Kjører Databaseskjemainitialisering ved testing fra kommandolinja -->
Expand Down

0 comments on commit c52a95c

Please sign in to comment.