From: Kai Moritz Date: Fri, 12 Aug 2022 21:18:19 +0000 (+0200) Subject: Integration-Test hinzugefügt, um die Lauffähigkeit der App sicherzustellen X-Git-Tag: endless-stream-consumer-DEPRECATED^2^2^2~1^2~1 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=b4b08b184fbe583b45c85b9b9c5622e4c1ac5de5;p=demos%2Fkafka%2Ftraining Integration-Test hinzugefügt, um die Lauffähigkeit der App sicherzustellen --- 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() {} +}