From: Kai Moritz Date: Sat, 3 Feb 2024 08:02:29 +0000 (+0100) Subject: WIP X-Git-Tag: rebase--2024-02-26--19-46~41 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=bb1b27a43966f180c141c87295b392c19eb09fe5;p=demos%2Fkafka%2Fchat WIP --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java b/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java index 0b8d3101..c30dd62d 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java @@ -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(); }