File tree Expand file tree Collapse file tree 11 files changed +29
-29
lines changed
springwolf-amqp-example/src/test/java/io/github/springwolf/examples/amqp
springwolf-cloud-stream-example/src/test/java/io/github/springwolf/examples/cloudstream
springwolf-jms-example/src/test/java/io/github/springwolf/examples/jms
springwolf-kafka-example/src/test/java/io/github/springwolf/examples/kafka
springwolf-sns-example/src/test/java/io/github/springwolf/examples/sns
springwolf-sqs-example/src/test/java/io/github/springwolf/examples/sqs
springwolf-stomp-example/src/test/java/io/github/springwolf/examples/stomp Expand file tree Collapse file tree 11 files changed +29
-29
lines changed Original file line number Diff line number Diff line change 1919import org .springframework .test .context .DynamicPropertySource ;
2020import org .springframework .test .context .TestPropertySource ;
2121import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
22- import org .testcontainers .containers .DockerComposeContainer ;
22+ import org .testcontainers .containers .ComposeContainer ;
2323import org .testcontainers .containers .wait .strategy .Wait ;
2424import org .testcontainers .junit .jupiter .Container ;
2525import org .testcontainers .junit .jupiter .Testcontainers ;
@@ -57,7 +57,7 @@ public class AmqpProducerSystemTest {
5757 ExampleConsumer exampleConsumer ;
5858
5959 @ Container
60- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
60+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
6161 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
6262 .withServices (AMQP_NAME )
6363 .withExposedService (AMQP_NAME , 5672 )
Original file line number Diff line number Diff line change 44import lombok .extern .slf4j .Slf4j ;
55import org .junit .jupiter .api .Test ;
66import org .springframework .web .client .RestTemplate ;
7- import org .testcontainers .containers .DockerComposeContainer ;
7+ import org .testcontainers .containers .ComposeContainer ;
88import org .testcontainers .containers .wait .strategy .Wait ;
99import org .testcontainers .junit .jupiter .Container ;
1010import org .testcontainers .junit .jupiter .Testcontainers ;
2727public class ApiSystemTest {
2828
2929 private static final RestTemplate restTemplate = new RestTemplate ();
30- private static final String APP_NAME = "app_1 " ;
30+ private static final String APP_NAME = "app " ;
3131 private static final int APP_PORT = 8080 ;
3232
3333 @ Container
34- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
34+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
3535 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
3636 .withExposedService (APP_NAME , APP_PORT )
3737 .waitingFor (APP_NAME , Wait .forLogMessage (".*AsyncAPI document was built.*" , 1 ))
Original file line number Diff line number Diff line change 44import lombok .extern .slf4j .Slf4j ;
55import org .junit .jupiter .api .Test ;
66import org .springframework .web .client .RestTemplate ;
7- import org .testcontainers .containers .DockerComposeContainer ;
7+ import org .testcontainers .containers .ComposeContainer ;
88import org .testcontainers .containers .wait .strategy .Wait ;
99import org .testcontainers .junit .jupiter .Container ;
1010import org .testcontainers .junit .jupiter .Testcontainers ;
2727public class ApiSystemTest {
2828
2929 private static final RestTemplate restTemplate = new RestTemplate ();
30- private static final String APP_NAME = "app_1 " ;
30+ private static final String APP_NAME = "app " ;
3131 private static final int APP_PORT = 8080 ;
3232
3333 @ Container
34- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
34+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
3535 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
3636 .withExposedService (APP_NAME , APP_PORT )
3737 .waitingFor (APP_NAME , Wait .forLogMessage (".*AsyncAPI document was built.*" , 1 ))
Original file line number Diff line number Diff line change 44import lombok .extern .slf4j .Slf4j ;
55import org .junit .jupiter .api .Test ;
66import org .springframework .web .client .RestTemplate ;
7- import org .testcontainers .containers .DockerComposeContainer ;
7+ import org .testcontainers .containers .ComposeContainer ;
88import org .testcontainers .containers .wait .strategy .Wait ;
99import org .testcontainers .junit .jupiter .Container ;
1010import org .testcontainers .junit .jupiter .Testcontainers ;
2727public class ApiSystemTest {
2828
2929 private static final RestTemplate restTemplate = new RestTemplate ();
30- private static final String APP_NAME = "app_1 " ;
30+ private static final String APP_NAME = "app " ;
3131 private static final int APP_PORT = 8080 ;
3232
3333 @ Container
34- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
34+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
3535 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
3636 .withExposedService (APP_NAME , APP_PORT )
3737 .waitingFor (APP_NAME , Wait .forLogMessage (".*AsyncAPI document was built.*" , 1 ))
Original file line number Diff line number Diff line change 1212import org .springframework .test .context .DynamicPropertyRegistry ;
1313import org .springframework .test .context .DynamicPropertySource ;
1414import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
15- import org .testcontainers .containers .DockerComposeContainer ;
15+ import org .testcontainers .containers .ComposeContainer ;
1616import org .testcontainers .containers .wait .strategy .Wait ;
1717import org .testcontainers .junit .jupiter .Container ;
1818import org .testcontainers .junit .jupiter .Testcontainers ;
@@ -50,7 +50,7 @@ public class JmsProducerSystemTest {
5050 String brokerUrl ;
5151
5252 @ Container
53- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
53+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
5454 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
5555 .withServices (APP_JMS )
5656 .withExposedService (APP_JMS , 61616 )
Original file line number Diff line number Diff line change 44import lombok .extern .slf4j .Slf4j ;
55import org .junit .jupiter .api .Test ;
66import org .springframework .web .client .RestTemplate ;
7- import org .testcontainers .containers .DockerComposeContainer ;
7+ import org .testcontainers .containers .ComposeContainer ;
88import org .testcontainers .containers .wait .strategy .Wait ;
99import org .testcontainers .junit .jupiter .Container ;
1010import org .testcontainers .junit .jupiter .Testcontainers ;
2727public class ApiSystemTest {
2828
2929 private static final RestTemplate restTemplate = new RestTemplate ();
30- private static final String APP_NAME = "app_1 " ;
30+ private static final String APP_NAME = "app " ;
3131 private static final int APP_PORT = 8080 ;
3232
3333 @ Container
34- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
34+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
3535 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
3636 .withExposedService (APP_NAME , APP_PORT )
3737 .waitingFor (APP_NAME , Wait .forLogMessage (".*AsyncAPI document was built.*" , 1 ))
Original file line number Diff line number Diff line change 1313import org .springframework .http .HttpHeaders ;
1414import org .springframework .http .ResponseEntity ;
1515import org .springframework .web .client .RestTemplate ;
16- import org .testcontainers .containers .DockerComposeContainer ;
16+ import org .testcontainers .containers .ComposeContainer ;
1717import org .testcontainers .containers .wait .strategy .Wait ;
1818import org .testcontainers .junit .jupiter .Container ;
1919import org .testcontainers .junit .jupiter .Testcontainers ;
@@ -43,7 +43,7 @@ public class KafkaProducerSystemTest {
4343 private static final boolean USE_SCHEMA_REGISTRY = false ;
4444
4545 @ Container
46- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
46+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
4747 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
4848 .withServices (APP_NAME , KAFKA_NAME , USE_SCHEMA_REGISTRY ? "kafka-schema-registry" : "" )
4949 .withExposedService (APP_NAME , APP_PORT )
Original file line number Diff line number Diff line change 44import lombok .extern .slf4j .Slf4j ;
55import org .junit .jupiter .api .Test ;
66import org .springframework .web .client .RestTemplate ;
7- import org .testcontainers .containers .DockerComposeContainer ;
7+ import org .testcontainers .containers .ComposeContainer ;
88import org .testcontainers .containers .wait .strategy .Wait ;
99import org .testcontainers .junit .jupiter .Container ;
1010import org .testcontainers .junit .jupiter .Testcontainers ;
2727public class ApiSystemTest {
2828
2929 private static final RestTemplate restTemplate = new RestTemplate ();
30- private static final String APP_NAME = "app_1 " ;
30+ private static final String APP_NAME = "app " ;
3131 private static final int APP_PORT = 8080 ;
3232
3333 @ Container
34- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
34+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
3535 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
3636 .withExposedService (APP_NAME , APP_PORT )
3737 .waitingFor (APP_NAME , Wait .forLogMessage (".*AsyncAPI document was built.*" , 1 ))
Original file line number Diff line number Diff line change 44import lombok .extern .slf4j .Slf4j ;
55import org .junit .jupiter .api .Test ;
66import org .springframework .web .client .RestTemplate ;
7- import org .testcontainers .containers .DockerComposeContainer ;
7+ import org .testcontainers .containers .ComposeContainer ;
88import org .testcontainers .containers .wait .strategy .Wait ;
99import org .testcontainers .junit .jupiter .Container ;
1010import org .testcontainers .junit .jupiter .Testcontainers ;
2727public class ApiSystemTest {
2828
2929 private static final RestTemplate restTemplate = new RestTemplate ();
30- private static final String APP_NAME = "app_1 " ;
30+ private static final String APP_NAME = "app " ;
3131 private static final int APP_PORT = 8080 ;
3232
3333 @ Container
34- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
34+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
3535 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
3636 .withExposedService (APP_NAME , APP_PORT )
3737 .waitingFor (APP_NAME , Wait .forLogMessage (".*AsyncAPI document was built.*" , 1 ))
Original file line number Diff line number Diff line change 1212import org .springframework .beans .factory .annotation .Autowired ;
1313import org .springframework .boot .test .context .SpringBootTest ;
1414import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
15- import org .testcontainers .containers .DockerComposeContainer ;
15+ import org .testcontainers .containers .ComposeContainer ;
1616import org .testcontainers .containers .wait .strategy .Wait ;
1717import org .testcontainers .junit .jupiter .Container ;
1818import org .testcontainers .junit .jupiter .Testcontainers ;
@@ -50,7 +50,7 @@ public class SqsProducerSystemTest {
5050 ArgumentCaptor <Map <String , Object >> headersCaptor ;
5151
5252 @ Container
53- public static DockerComposeContainer <?> environment = new DockerComposeContainer <> (new File ("docker-compose.yml" ))
53+ public static ComposeContainer environment = new ComposeContainer (new File ("docker-compose.yml" ))
5454 .withCopyFilesInContainer (".env" ) // do not copy all files in the directory
5555 .withServices (LOCALSTACK_NAME )
5656 .withLogConsumer (LOCALSTACK_NAME , l -> Arrays .stream (
You can’t perform that action at this time.
0 commit comments