From 52edf6d5bd65fcf99e3fba4ffd8844328d319f35 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 8 Mar 2024 12:24:52 +0100 Subject: [PATCH] test: Removed unnecessary Mockito-recordings in `ChatRoomDataTest` --- .../de/juplo/kafka/chat/backend/domain/ChatRoomDataTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatRoomDataTest.java b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatRoomDataTest.java index 58c4b502..341f6582 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatRoomDataTest.java +++ b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatRoomDataTest.java @@ -116,7 +116,6 @@ public class ChatRoomDataTest String messageText = "Bar"; Message message = new Message(key, 0l, timestamp, messageText); when(chatMessageService.getMessage(any(Message.MessageKey.class))).thenReturn(Mono.just(message)); - when(chatMessageService.persistMessage(any(Message.MessageKey.class), any(LocalDateTime.class), any(String.class))).thenReturn(Mono.just(message)); // When Mono mono = chatRoomData.addMessage(messageId, user, messageText); @@ -133,7 +132,6 @@ public class ChatRoomDataTest String messageText = "Bar"; Message message = new Message(key, 0l, timestamp, messageText); when(chatMessageService.getMessage(any(Message.MessageKey.class))).thenReturn(Mono.just(message)); - when(chatMessageService.persistMessage(any(Message.MessageKey.class), any(LocalDateTime.class), any(String.class))).thenReturn(Mono.just(message)); // When chatRoomData @@ -153,7 +151,6 @@ public class ChatRoomDataTest String mutatedText = "Boom!"; Message message = new Message(key, 0l, timestamp, messageText); when(chatMessageService.getMessage(any(Message.MessageKey.class))).thenReturn(Mono.just(message)); - when(chatMessageService.persistMessage(any(Message.MessageKey.class), any(LocalDateTime.class), any(String.class))).thenReturn(Mono.just(message)); // When Mono mono = chatRoomData.addMessage(messageId, user, mutatedText); @@ -171,7 +168,6 @@ public class ChatRoomDataTest String mutatedText = "Boom!"; Message message = new Message(key, 0l, timestamp, messageText); when(chatMessageService.getMessage(any(Message.MessageKey.class))).thenReturn(Mono.just(message)); - when(chatMessageService.persistMessage(any(Message.MessageKey.class), any(LocalDateTime.class), any(String.class))).thenReturn(Mono.just(message)); // When chatRoomData -- 2.20.1