JAVA-23096 | renamed tests to live tests
This commit is contained in:
parent
86f7514df6
commit
efdb71e05e
|
@ -2,7 +2,6 @@ package com.baeldung.testcontainers;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
|
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class Application {
|
public class Application {
|
||||||
|
|
|
@ -25,7 +25,7 @@ import com.baeldung.testcontainers.support.MiddleEarthCharactersRepository;
|
||||||
@Testcontainers
|
@Testcontainers
|
||||||
@SpringBootTest(webEnvironment = DEFINED_PORT)
|
@SpringBootTest(webEnvironment = DEFINED_PORT)
|
||||||
@DirtiesContext(classMode = AFTER_CLASS)
|
@DirtiesContext(classMode = AFTER_CLASS)
|
||||||
class DynamicPropertiesIntegrationTest {
|
class DynamicPropertiesLiveTest {
|
||||||
@Container
|
@Container
|
||||||
static MongoDBContainer mongoDBContainer = new MongoDBContainer(DockerImageName.parse("mongo:4.0.10"));
|
static MongoDBContainer mongoDBContainer = new MongoDBContainer(DockerImageName.parse("mongo:4.0.10"));
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ class DynamicPropertiesIntegrationTest {
|
||||||
new MiddleEarthCharacter("Frodo", "hobbit"),
|
new MiddleEarthCharacter("Frodo", "hobbit"),
|
||||||
new MiddleEarthCharacter("Samwise", "hobbit"),
|
new MiddleEarthCharacter("Samwise", "hobbit"),
|
||||||
new MiddleEarthCharacter("Aragon", "human"),
|
new MiddleEarthCharacter("Aragon", "human"),
|
||||||
new MiddleEarthCharacter("Gandalf", "wizzard")
|
new MiddleEarthCharacter("Gandalf", "wizard")
|
||||||
));
|
));
|
||||||
|
|
||||||
when().get("/characters?race=hobbit")
|
when().get("/characters?race=hobbit")
|
|
@ -24,7 +24,7 @@ import com.baeldung.testcontainers.support.MiddleEarthCharactersRepository;
|
||||||
@Testcontainers
|
@Testcontainers
|
||||||
@SpringBootTest(webEnvironment = DEFINED_PORT)
|
@SpringBootTest(webEnvironment = DEFINED_PORT)
|
||||||
@DirtiesContext(classMode = AFTER_CLASS)
|
@DirtiesContext(classMode = AFTER_CLASS)
|
||||||
class ServiceConnectionIntegrationTest {
|
class ServiceConnectionLiveTest {
|
||||||
|
|
||||||
@Container
|
@Container
|
||||||
@ServiceConnection
|
@ServiceConnection
|
||||||
|
@ -44,7 +44,7 @@ class ServiceConnectionIntegrationTest {
|
||||||
new MiddleEarthCharacter("Frodo", "hobbit"),
|
new MiddleEarthCharacter("Frodo", "hobbit"),
|
||||||
new MiddleEarthCharacter("Samwise", "hobbit"),
|
new MiddleEarthCharacter("Samwise", "hobbit"),
|
||||||
new MiddleEarthCharacter("Aragon", "human"),
|
new MiddleEarthCharacter("Aragon", "human"),
|
||||||
new MiddleEarthCharacter("Gandalf", "wizzard")
|
new MiddleEarthCharacter("Gandalf", "wizard")
|
||||||
));
|
));
|
||||||
|
|
||||||
when().get("/characters?race=hobbit")
|
when().get("/characters?race=hobbit")
|
Loading…
Reference in New Issue