projects
/
demos
/
kafka
/
chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d89b86b
)
WIP:test: HandoverIT-POC - Refactored listening into class `TestListener`
author
Kai Moritz
<kai@juplo.de>
Fri, 1 Mar 2024 18:56:54 +0000
(19:56 +0100)
committer
Kai Moritz
<kai@juplo.de>
Fri, 1 Mar 2024 18:56:54 +0000
(19:56 +0100)
src/test/java/de/juplo/kafka/chat/backend/TestListener.java
patch
|
blob
|
history
diff --git
a/src/test/java/de/juplo/kafka/chat/backend/TestListener.java
b/src/test/java/de/juplo/kafka/chat/backend/TestListener.java
index
0ea8628
..
1c993c1
100644
(file)
--- a/
src/test/java/de/juplo/kafka/chat/backend/TestListener.java
+++ b/
src/test/java/de/juplo/kafka/chat/backend/TestListener.java
@@
-44,9
+44,14
@@
public class TestListener implements Runnable
return Mono.error(e);
}
})
+ .doOnNext(message -> log.info(
+ "Received a message from chat-room {}: {}",
+ chatRoom,
+ message))
.take(30))
.takeUntil(message -> !running)
- .subscribe(message -> log.info("Received message: {}", message));
+ .then()
+ .block();
}
Flux<ServerSentEvent<String>> receiveMessages(ChatRoomInfoTo chatRoom)