From a5d7ba9e4e851c0a5f98974b3d12f5aab33f64c0 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 25 Aug 2023 12:23:19 +0200 Subject: [PATCH] WIP:KafkaChatHomeTest --- .../chat/backend/persistence/kafka/KafkaChatHomeTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { } -- 2.20.1