diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleDocument.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleDocument.java similarity index 97% rename from spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleDocument.java rename to spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleDocument.java index 4358509686..32b7e80ac6 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleDocument.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleDocument.java @@ -19,7 +19,7 @@ package smoketest.data.mongo; import org.springframework.data.mongodb.core.mapping.Document; @Document(collection = "exampleDocuments") -public class ExampleDocument { +public class SampleDocument { private String id; diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleMongoApplication.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleMongoApplication.java similarity index 95% rename from spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleMongoApplication.java rename to spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleMongoApplication.java index 8c59960d05..50a4de4273 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleMongoApplication.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleMongoApplication.java @@ -19,6 +19,6 @@ package smoketest.data.mongo; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication -public class ExampleMongoApplication { +public class SampleMongoApplication { } diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleReactiveRepository.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleReactiveRepository.java similarity index 88% rename from spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleReactiveRepository.java rename to spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleReactiveRepository.java index fc866b85d8..775e6f91e9 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleReactiveRepository.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleReactiveRepository.java @@ -18,6 +18,6 @@ package smoketest.data.mongo; import org.springframework.data.mongodb.repository.ReactiveMongoRepository; -interface ExampleReactiveRepository extends ReactiveMongoRepository { +interface SampleReactiveRepository extends ReactiveMongoRepository { } diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleRepository.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleRepository.java similarity index 90% rename from spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleRepository.java rename to spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleRepository.java index 814ca2f8df..a018dee0d2 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleRepository.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleRepository.java @@ -18,6 +18,6 @@ package smoketest.data.mongo; import org.springframework.data.mongodb.repository.MongoRepository; -interface ExampleRepository extends MongoRepository { +interface SampleRepository extends MongoRepository { } diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleService.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleService.java similarity index 92% rename from spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleService.java rename to spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleService.java index 4368a956ba..b4144686fa 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/ExampleService.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/main/java/smoketest/data/mongo/SampleService.java @@ -20,11 +20,11 @@ import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.stereotype.Service; @Service -public class ExampleService { +public class SampleService { private final MongoTemplate mongoTemplate; - public ExampleService(MongoTemplate mongoTemplate) { + public SampleService(MongoTemplate mongoTemplate) { this.mongoTemplate = mongoTemplate; } diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/DataMongoTestReactiveSslIntegrationTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationReactiveSslTests.java similarity index 93% rename from spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/DataMongoTestReactiveSslIntegrationTests.java rename to spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationReactiveSslTests.java index 594e722aab..5a601a2849 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/DataMongoTestReactiveSslIntegrationTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationReactiveSslTests.java @@ -40,7 +40,7 @@ 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" }) -class DataMongoTestReactiveSslIntegrationTests { +class SampleMongoApplicationReactiveSslTests { @Container @ServiceConnection @@ -50,11 +50,11 @@ class DataMongoTestReactiveSslIntegrationTests { private ReactiveMongoTemplate mongoTemplate; @Autowired - private ExampleReactiveRepository exampleRepository; + private SampleReactiveRepository exampleRepository; @Test void testRepository() { - ExampleDocument exampleDocument = new ExampleDocument(); + SampleDocument exampleDocument = new SampleDocument(); exampleDocument.setText("Look, new @DataMongoTest!"); exampleDocument = this.exampleRepository.save(exampleDocument).block(Duration.ofSeconds(30)); assertThat(exampleDocument.getId()).isNotNull(); diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/DataMongoTestSslIntegrationTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationSslTests.java similarity index 93% rename from spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/DataMongoTestSslIntegrationTests.java rename to spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationSslTests.java index 1c880f3d8b..488bbb0415 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/DataMongoTestSslIntegrationTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongo/src/test/java/smoketest/data/mongo/SampleMongoApplicationSslTests.java @@ -41,7 +41,7 @@ import static org.assertj.core.api.Assertions.assertThat; "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 DataMongoTestSslIntegrationTests { +class SampleMongoApplicationSslTests { @Container @ServiceConnection @@ -51,11 +51,11 @@ class DataMongoTestSslIntegrationTests { private MongoTemplate mongoTemplate; @Autowired - private ExampleRepository exampleRepository; + private SampleRepository exampleRepository; @Test void testRepository() { - ExampleDocument exampleDocument = new ExampleDocument(); + SampleDocument exampleDocument = new SampleDocument(); exampleDocument.setText("Look, new @DataMongoTest!"); exampleDocument = this.exampleRepository.save(exampleDocument); assertThat(exampleDocument.getId()).isNotNull();