From: Kai Moritz Date: Fri, 15 Sep 2023 11:13:35 +0000 (+0200) Subject: WHATTHEFUCK X-Git-Tag: rebase--2023-09-15--16-33~4 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=056146e9335ff64a2f1406467214a1f687de3808;p=demos%2Fkafka%2Fchat WHATTHEFUCK --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/KafkaConfigurationIT.java b/src/test/java/de/juplo/kafka/chat/backend/KafkaConfigurationIT.java index 56695df6..724c4816 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/KafkaConfigurationIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/KafkaConfigurationIT.java @@ -62,4 +62,11 @@ class KafkaConfigurationIT extends AbstractConfigurationWithShardingIT { KafkaTestUtils.joinConsumerTasks(consumerTaskRunner); } + + + @TestConfiguration + @Import(KafkaTestUtils.KafkaTestConfiguration.class) + static class KafkaConfigurationITConfiguration + { + } } diff --git a/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaTestUtils.java b/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaTestUtils.java index 76196e37..4d86848e 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaTestUtils.java +++ b/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaTestUtils.java @@ -24,10 +24,10 @@ public class KafkaTestUtils @TestConfiguration @EnableConfigurationProperties(ChatBackendProperties.class) @Import(KafkaServicesConfiguration.class) - public static class KafkaTestConfiguration + public static class KafkaTestConfiguration { @Bean - WorkAssignor dataChannelWorkAssignor(DataChannel dataChannel) + public WorkAssignor dataChannelWorkAssignor(DataChannel dataChannel) { return consumer -> { @@ -39,7 +39,7 @@ public class KafkaTestUtils } @Bean - Clock clock() + public Clock clock() { return Clock.systemDefaultZone(); }