chore: Upgrade Mockito and surefire plugin (#31073)
Upgrading Mockito ahead of upgrading Spring itself.
This commit is contained in:
parent
30300bb6a4
commit
5647916478
|
|
@ -211,16 +211,6 @@
|
|||
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
<groupId>org.mockito</groupId>
|
||||
|
||||
<artifactId>mockito-inline</artifactId>
|
||||
|
||||
<version>${mockito.version}</version>
|
||||
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver3 -->
|
||||
|
||||
<dependency>
|
||||
|
|
|
|||
|
|
@ -368,11 +368,6 @@
|
|||
<artifactId>sentry-spring-boot-starter-jakarta</artifactId>
|
||||
<version>6.23.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-inline</artifactId>
|
||||
<version>${mockito.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-core</artifactId>
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ public class EnvManagerTest {
|
|||
file.deleteOnExit();
|
||||
|
||||
Mockito.when(commonConfig.getEnvFilePath()).thenReturn(file.getAbsolutePath());
|
||||
Mockito.when(fileUtils.createZip(any())).thenReturn(new byte[1024]);
|
||||
Mockito.when(fileUtils.createZip(any(FileUtils.ZipSourceFile[].class))).thenReturn(new byte[1024]);
|
||||
|
||||
ServerWebExchange exchange = Mockito.mock(ServerWebExchange.class);
|
||||
ServerHttpResponse response = Mockito.mock(ServerHttpResponse.class);
|
||||
|
|
|
|||
|
|
@ -165,9 +165,7 @@ class ActionExecutionSolutionCEImplTest {
|
|||
configService,
|
||||
tenantService);
|
||||
|
||||
ObservationRegistry.ObservationConfig mockObservationConfig =
|
||||
Mockito.mock(ObservationRegistry.ObservationConfig.class);
|
||||
Mockito.when(observationRegistry.observationConfig()).thenReturn(mockObservationConfig);
|
||||
Mockito.when(observationRegistry.isNoop()).thenReturn(true);
|
||||
}
|
||||
|
||||
@BeforeEach
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<logback.version>1.4.14</logback.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
<mockito.version>4.4.0</mockito.version>
|
||||
<mockito.version>5.10.0</mockito.version>
|
||||
<mockwebserver.version>5.0.0-alpha.2</mockwebserver.version>
|
||||
<okhttp3.version>4.10.0</okhttp3.version>
|
||||
<org.pf4j.version>3.10.0</org.pf4j.version>
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.0.0-M5</version>
|
||||
<version>3.2.3</version>
|
||||
<configuration>
|
||||
<printSummary>true</printSummary>
|
||||
<!-- Allow JUnit to access the test classes -->
|
||||
|
|
@ -85,19 +85,6 @@
|
|||
--add-opens java.base/java.time=ALL-UNNAMED
|
||||
--add-opens java.base/java.util=ALL-UNNAMED</argLine>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-engine</artifactId>
|
||||
<version>5.6.2</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.junit.platform</groupId>
|
||||
<artifactId>junit-platform-commons</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user