From: Kai Moritz Date: Fri, 25 Aug 2023 10:32:41 +0000 (+0200) Subject: WIP:KafkaChatHomeTest X-Git-Tag: wip-kafka-chat-home-test--springboot X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=81e0f142e2b86c6f050b705390fb28b65c4990b2;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 4d5c12cc..58bcaa69 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 @@ -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 { }