GH-198 - Upgrade to Spring Boot 3.1 snapshots.
Switch verification of mock beans as Mockito 5.3.0 uses a different MockMaker by default that doesn't add the explicit interface we have previously checked for. Remove obsolete init- and destroy method declarations from service bean definitions in examples.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.1.0-RC1</version>
|
||||
<version>3.1.0-SNAPSHOT</version>
|
||||
<relativePath />
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -48,8 +48,8 @@ class ApplicationIntegrationTests {
|
||||
@TestConfiguration
|
||||
static class Infrastructure {
|
||||
|
||||
@Bean
|
||||
@ServiceConnection
|
||||
@Bean(initMethod = "start", destroyMethod = "stop")
|
||||
PostgreSQLContainer<?> database() {
|
||||
return new PostgreSQLContainer<>("postgres:15.2");
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@ class ApplicationIntegrationTests {
|
||||
@TestConfiguration
|
||||
static class MongoDbInfrastructureConfiguration {
|
||||
|
||||
@Bean
|
||||
@ServiceConnection
|
||||
@Bean(initMethod = "start", destroyMethod = "stop")
|
||||
MongoDBContainer mongoDBContainer() {
|
||||
return new MongoDBContainer("mongo:6.0.3");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user