From bb1b27a43966f180c141c87295b392c19eb09fe5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 3 Feb 2024 09:02:29 +0100 Subject: [PATCH] WIP --- .../de/juplo/kafka/chat/backend/AbstractHandoverIT.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- 2.20.1