WIP:KafkaChatHomeTest wip-kafka-chat-home-test--springboot
authorKai Moritz <kai@juplo.de>
Fri, 25 Aug 2023 10:32:41 +0000 (12:32 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 25 Aug 2023 10:32:41 +0000 (12:32 +0200)
src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeTest.java

index 4d5c12c..58bcaa6 100644 (file)
@@ -1,5 +1,6 @@
 package de.juplo.kafka.chat.backend.persistence.kafka;
 
+import de.juplo.kafka.chat.backend.ChatBackendProperties;
 import de.juplo.kafka.chat.backend.domain.ChatHomeWithShardsTestBase;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.kafka.clients.consumer.Consumer;
@@ -10,6 +11,7 @@ import org.junit.jupiter.api.BeforeAll;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration;
 import org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
 import org.springframework.boot.test.context.TestConfiguration;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Import;
@@ -49,6 +51,7 @@ public class KafkaChatHomeTest extends ChatHomeWithShardsTestBase
       KafkaAutoConfiguration.class,
       TaskExecutionAutoConfiguration.class,
   })
+  @EnableConfigurationProperties(ChatBackendProperties.class)
   static class Configuration
   {
   }