From: Kai Moritz Date: Fri, 15 Sep 2023 10:55:14 +0000 (+0200) Subject: WHATTHEFUCK X-Git-Tag: rebase--2023-09-15--16-33~10 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=360e4f8a9efecf0a3f28028fe259b77907465b02;p=demos%2Fkafka%2Fchat WHATTHEFUCK --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java b/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java index 3390da32..25ea676a 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java +++ b/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java @@ -16,7 +16,6 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.kafka.test.context.EmbeddedKafka; -import org.springframework.test.context.TestPropertySource; import java.time.Clock; import java.util.List; @@ -33,6 +32,11 @@ import static de.juplo.kafka.chat.backend.implementation.kafka.KafkaChatHomeServ TaskExecutionAutoConfiguration.class, }, properties = { + "spring.main.allow-bean-definition-overriding=true", + "chat.backend.services=kafka", + "chat.backend.kafka.client-id-PREFIX=TEST", + "chat.backend.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}", + "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}", "chat.backend.kafka.info-channel-topic=" + INFO_TOPIC, "chat.backend.kafka.data-channel-topic=" + DATA_TOPIC, "chat.backend.kafka.num-partitions=" + NUM_SHARDS, @@ -50,13 +54,6 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest @TestConfiguration @EnableConfigurationProperties(ChatBackendProperties.class) @Import(KafkaServicesConfiguration.class) - @TestPropertySource(properties = { - "spring.main.allow-bean-definition-overriding=true", - "chat.backend.services=kafka", - "chat.backend.kafka.client-id-PREFIX=TEST", - "chat.backend.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}", - "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}", - }) static class KafkaChatHomeTestConfiguration { @Bean