From: Kai Moritz Date: Fri, 25 Aug 2023 10:23:19 +0000 (+0200) Subject: WIP:KafkaChatHomeTest X-Git-Tag: wip-kafka-chat-home-test--springboot~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=a5d7ba9e4e851c0a5f98974b3d12f5aab33f64c0;p=demos%2Fkafka%2Fchat WIP:KafkaChatHomeTest --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeTest.java b/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeTest.java index a99a75cc..d18132d6 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeTest.java +++ b/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeTest.java @@ -8,6 +8,7 @@ import org.apache.kafka.common.TopicPartition; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Import; import org.springframework.context.annotation.PropertySource; @@ -41,7 +42,10 @@ public class KafkaChatHomeTest extends ChatHomeWithShardsTestBase @TestConfiguration - @Import(KafkaServicesConfiguration.class) + @Import({ + KafkaServicesConfiguration.class, + KafkaAutoConfiguration.class, + }) static class Configuration { }