WIP
authorKai Moritz <kai@juplo.de>
Sat, 3 Feb 2024 08:02:29 +0000 (09:02 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 23 Feb 2024 15:40:03 +0000 (16:40 +0100)
src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java

index 0b8d310..c30dd62 100644 (file)
@@ -1,13 +1,18 @@
 package de.juplo.kafka.chat.backend;
 
+import org.testcontainers.containers.GenericContainer;
+import org.testcontainers.junit.jupiter.Container;
 import org.testcontainers.junit.jupiter.Testcontainers;
+import org.testcontainers.utility.DockerImageName;
 
 
 @Testcontainers
 public abstract class AbstractHandoverIT
 {
+  @Container
+  GenericContainer backend1 = new GenericContainer(DockerImageName.parse())
+  @Container
   KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.4.0"))
     .withKraft();
-kafka.start();
   var bootstrapServers = kafka.getBootstrapServers();
 }