From: Kai Moritz Date: Wed, 13 Sep 2023 20:04:29 +0000 (+0200) Subject: WIP X-Git-Tag: rebase--2023-09-14--22-59~23 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=c76b0fc9dbb7ef63d2b3b49ae547915066ce377a;p=demos%2Fkafka%2Fchat WIP --- 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 a18de256..6e6fcb14 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 @@ -55,13 +55,15 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest static class KafkaChatHomeTestConfiguration { @Bean - KafkaServicesApplicationRunner.WorkAssignor workAssignor() + KafkaServicesApplicationRunner.WorkAssignor workAssignor( + ChatRoomChannel chatRoomChannel) { return consumer -> { List assignedPartitions = List.of(new TopicPartition(TOPIC, 2)); consumer.assign(assignedPartitions); + chatRoomChannel.onPartitionsAssigned(assignedPartitions); }; }