WIP
authorKai Moritz <kai@juplo.de>
Wed, 13 Sep 2023 20:04:29 +0000 (22:04 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 13 Sep 2023 20:04:29 +0000 (22:04 +0200)
src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java

index a18de25..6e6fcb1 100644 (file)
@@ -55,13 +55,15 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest
   static class KafkaChatHomeTestConfiguration
   {
     @Bean
-    KafkaServicesApplicationRunner.WorkAssignor workAssignor()
+    KafkaServicesApplicationRunner.WorkAssignor workAssignor(
+        ChatRoomChannel chatRoomChannel)
     {
       return consumer ->
       {
         List<TopicPartition> assignedPartitions =
             List.of(new TopicPartition(TOPIC, 2));
         consumer.assign(assignedPartitions);
+        chatRoomChannel.onPartitionsAssigned(assignedPartitions);
       };
     }