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

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