JAVA-23096 | renamed tests to live tests

This commit is contained in:
gaepi 2023-08-30 10:40:32 +02:00
parent 86f7514df6
commit efdb71e05e
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,6 @@ package com.baeldung.testcontainers;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
@SpringBootApplication
public class Application {

View File

@ -25,7 +25,7 @@ import com.baeldung.testcontainers.support.MiddleEarthCharactersRepository;
@Testcontainers
@SpringBootTest(webEnvironment = DEFINED_PORT)
@DirtiesContext(classMode = AFTER_CLASS)
class DynamicPropertiesIntegrationTest {
class DynamicPropertiesLiveTest {
@Container
static MongoDBContainer mongoDBContainer = new MongoDBContainer(DockerImageName.parse("mongo:4.0.10"));
@ -48,7 +48,7 @@ class DynamicPropertiesIntegrationTest {
new MiddleEarthCharacter("Frodo", "hobbit"),
new MiddleEarthCharacter("Samwise", "hobbit"),
new MiddleEarthCharacter("Aragon", "human"),
new MiddleEarthCharacter("Gandalf", "wizzard")
new MiddleEarthCharacter("Gandalf", "wizard")
));
when().get("/characters?race=hobbit")

View File

@ -24,7 +24,7 @@ import com.baeldung.testcontainers.support.MiddleEarthCharactersRepository;
@Testcontainers
@SpringBootTest(webEnvironment = DEFINED_PORT)
@DirtiesContext(classMode = AFTER_CLASS)
class ServiceConnectionIntegrationTest {
class ServiceConnectionLiveTest {
@Container
@ServiceConnection
@ -44,7 +44,7 @@ class ServiceConnectionIntegrationTest {
new MiddleEarthCharacter("Frodo", "hobbit"),
new MiddleEarthCharacter("Samwise", "hobbit"),
new MiddleEarthCharacter("Aragon", "human"),
new MiddleEarthCharacter("Gandalf", "wizzard")
new MiddleEarthCharacter("Gandalf", "wizard")
));
when().get("/characters?race=hobbit")