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:
Oliver Drotbohm
2023-05-02 14:28:10 +02:00
parent 596e8828a2
commit d7ef7c9dea
5 changed files with 6 additions and 6 deletions

View File

@@ -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>

View File

@@ -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");
}

View File

@@ -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");
}