WIP
authorKai Moritz <kai@juplo.de>
Wed, 13 Sep 2023 19:49:05 +0000 (21:49 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 13 Sep 2023 19:49:05 +0000 (21:49 +0200)
src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java

index ad3712a..6bfee18 100644 (file)
@@ -15,6 +15,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.boot.test.context.TestConfiguration;
 import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Import;
 import org.springframework.context.annotation.Primary;
 import org.springframework.kafka.core.KafkaTemplate;
 import org.springframework.kafka.support.SendResult;
@@ -30,7 +31,6 @@ import static de.juplo.kafka.chat.backend.implementation.kafka.KafkaChatHomeServ
 @SpringBootTest(
     classes = {
         KafkaChatHomeServiceTest.KafkaChatHomeTestConfiguration.class,
-        KafkaServicesConfiguration.class,
         KafkaAutoConfiguration.class,
         TaskExecutionAutoConfiguration.class,
     },
@@ -52,6 +52,7 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest
 
   @TestConfiguration
   @EnableConfigurationProperties(ChatBackendProperties.class)
+  @Import(KafkaServicesConfiguration.class)
   static class KafkaChatHomeTestConfiguration
   {
     @Bean