From 127f852cf9491d156cde5ba37b932e89d0b5dda1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sat, 27 May 2023 00:07:10 +0200 Subject: [PATCH] Polish spring-boot-smoke-test-data-mongo Remove `@ImportAutoConfiguration(SslAutoConfiguration.class)`, since `SslAutoConfiguration.class` is already provided as an auto-configuration with `@SpringBootTest` See gh-35655 --- .../smoketest/data/mongo/SampleMongoApplicationSslTests.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationSslTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationSslTests.java index 488bbb0415..13b43c0d03 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationSslTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationSslTests.java @@ -22,8 +22,6 @@ import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.autoconfigure.ImportAutoConfiguration; -import org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.testcontainers.service.connection.ServiceConnection; import org.springframework.data.mongodb.core.MongoTemplate; @@ -40,7 +38,6 @@ import static org.assertj.core.api.Assertions.assertThat; "spring.ssl.bundle.pem.client.keystore.certificate=classpath:ssl/test-client.crt", "spring.ssl.bundle.pem.client.keystore.private-key=classpath:ssl/test-client.key", "spring.ssl.bundle.pem.client.truststore.certificate=classpath:ssl/test-ca.crt" }) -@ImportAutoConfiguration(SslAutoConfiguration.class) class SampleMongoApplicationSslTests { @Container