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<Message> mono = chatRoomData.addMessage(messageId, user, messageText);
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
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<Message> mono = chatRoomData.addMessage(messageId, user, mutatedText);
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