From b4b08b184fbe583b45c85b9b9c5622e4c1ac5de5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 12 Aug 2022 23:18:19 +0200 Subject: [PATCH] =?utf8?q?Integration-Test=20hinzugef=C3=BCgt,=20um=20die?= =?utf8?q?=20Lauff=C3=A4higkeit=20der=20App=20sicherzustellen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../java/de/juplo/kafka/ApplicationIT.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/test/java/de/juplo/kafka/ApplicationIT.java diff --git a/src/test/java/de/juplo/kafka/ApplicationIT.java b/src/test/java/de/juplo/kafka/ApplicationIT.java new file mode 100644 index 0000000..4c149cc --- /dev/null +++ b/src/test/java/de/juplo/kafka/ApplicationIT.java @@ -0,0 +1,25 @@ +package de.juplo.kafka; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.autoconfigure.data.mongo.AutoConfigureDataMongo; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.kafka.test.context.EmbeddedKafka; + +import static de.juplo.kafka.ApplicationTests.TOPIC; + + +@SpringBootTest( + properties = { + "consumer.bootstrap-server=${spring.embedded.kafka.brokers}", + "consumer.topic=" + TOPIC, + "spring.mongodb.embedded.version=4.4.13" }) +@EmbeddedKafka(topics = TOPIC) +@AutoConfigureDataMongo +public class ApplicationIT +{ + public static final String TOPIC = "FOO"; + + + @Test + public void testApplicationStartup() {} +} -- 2.20.1