WIP:ALIGN
authorKai Moritz <kai@juplo.de>
Fri, 15 Sep 2023 09:45:40 +0000 (11:45 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 15 Sep 2023 11:17:29 +0000 (13:17 +0200)
src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java
src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaTestUtils.java

index b5bc301..f12775a 100644 (file)
@@ -27,7 +27,7 @@ import static de.juplo.kafka.chat.backend.implementation.kafka.KafkaChatHomeServ
         "chat.backend.kafka.data-channel-topic=" + DATA_TOPIC,
         "chat.backend.kafka.num-partitions=" + NUM_SHARDS,
 })
-@Import(KafkaTestConfiguration.class)
+@Import(KafkaTestUtils.class)
 @EmbeddedKafka(
     topics = { INFO_TOPIC, DATA_TOPIC },
     partitions = 10)
@@ -42,7 +42,7 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest
       @Autowired ConsumerTaskRunner consumerTaskRunner,
       @Autowired KafkaTemplate<String, String> messageTemplate)
   {
-    KafkaTestConfiguration.sendAndLoadStoredData(
+    KafkaTestUtils.sendAndLoadStoredData(
         consumerTaskRunner,
         messageTemplate);
   }
@@ -50,6 +50,6 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest
   @AfterAll
   static void joinConsumerTasks(@Autowired ConsumerTaskRunner consumerTaskRunner)
   {
-    KafkaTestConfiguration.joinConsumerTasks(consumerTaskRunner);
+    KafkaTestUtils.joinConsumerTasks(consumerTaskRunner);
   }
 }
index 4b19897..5272729 100644 (file)
@@ -30,7 +30,7 @@ import static de.juplo.kafka.chat.backend.implementation.kafka.KafkaChatHomeServ
     "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}",
 })
 @Slf4j
-public abstract class KafkaTestConfiguration
+public abstract class KafkaTestUtils
 {
   @Bean
   WorkAssignor dataChannelWorkAssignor(DataChannel dataChannel)