WIP:test: `*ConfigurationIT` asserts, if restored messages can be seen
[demos/kafka/chat] / src / test / java / de / juplo / kafka / chat / backend / AbstractConfigurationIT.java
index 3e0efd3..9d87088 100644 (file)
@@ -251,37 +251,8 @@ public abstract class AbstractConfigurationIT
   }
 
   @Test
-  @DisplayName("Restored messages can be seen, when listening to restored chat-room")
-  void testListenToRestoredChatRoomYieldsRestoredMessages()
-  {
-    Awaitility
-        .await()
-        .atMost(Duration.ofSeconds(15))
-        .untilAsserted(() ->
-        {
-          Flux<MessageTo> result = webTestClient
-              .get()
-              .uri(
-                  "http://localhost:{port}/{chatRoomId}/listen",
-                  port,
-                  EXISTING_CHATROOM)
-              .accept(MediaType.TEXT_EVENT_STREAM)
-              .exchange()
-              .expectStatus().isOk()
-              .returnResult(MessageTo.class)
-              .getResponseBody();
-
-          List<MessageTo> messages = result
-              .take(expectedExistingMessages.length)
-              .collectList()
-              .block();
-          assertThat(messages).containsExactly(expectedExistingMessages);
-        });
-  }
-
-  @Test
-  @DisplayName("Newly send messages can be seen, when listening to restored chat-room")
-  void testListenToRestoredChatRoomYieldsAddedMessages()
+  @DisplayName("Only newly send messages can be seen, when listening to restored chat-room")
+  void testListenToRestoredChatRoomYieldsOnlyNewlyAddedMessages()
   {
     MessageTo sentMessage = webTestClient
         .put()