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