-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mapping user email to nickname in MessageResponseDto
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,7 @@ void sendToTopic_shouldReturnCorrectSendToPublicTopicAndReceivedMessageFromTopic | |
MessageResponseDto messageResponseDto = resultKeeper.get(3, SECONDS); | ||
assertThat(messageResponseDto).isNotNull(); | ||
assertThat(messageResponseDto.getId()).isNotNull(); | ||
assertThat(messageResponseDto.getSentFrom()).isEqualTo("[email protected]"); | ||
assertThat(messageResponseDto.getSentFrom()).isEqualTo("Vasil"); | ||
assertThat(messageResponseDto.getSendTo()).isEqualTo("Topic id=" + topicId); | ||
assertThat(messageResponseDto.getTimestamp()).isNotNull(); | ||
assertThat(messageResponseDto.getContent()).isEqualTo(messageRequestDto.getContent()); | ||
|
@@ -155,8 +155,8 @@ void sendToContact_shouldReturnCorrectReceivedPrivateMessageFromSelfToSelf() { | |
MessageResponseDto messageResponseDto = resultKeeper.get(3, SECONDS); | ||
assertThat(messageResponseDto).isNotNull(); | ||
assertThat(messageResponseDto.getId()).isNotNull(); | ||
assertThat(messageResponseDto.getSentFrom()).isEqualTo("[email protected]"); | ||
assertThat(messageResponseDto.getSendTo()).isEqualTo("[email protected]"); | ||
assertThat(messageResponseDto.getSentFrom()).isEqualTo("Vasil"); | ||
assertThat(messageResponseDto.getSendTo()).isEqualTo("Vasil"); | ||
assertThat(messageResponseDto.getTimestamp()).isNotNull(); | ||
assertThat(messageResponseDto.getContent()).isEqualTo(messageRequestDto.getContent()); | ||
} | ||
|
@@ -185,7 +185,7 @@ void getMessages_shouldReturnReceivedMessagesHistoryFromTopic() { | |
assertThat(messageResponseDtos).extracting("id").isNotNull(); | ||
assertThat(messageResponseDtos).extracting("timestamp").isNotNull(); | ||
assertThat(messageResponseDtos).extracting("sentFrom") | ||
.contains("[email protected]", "[email protected]"); | ||
.contains("Anton", "Vasil"); | ||
assertThat(messageResponseDtos).extracting("sendTo") | ||
.contains("[email protected]", "[email protected]"); | ||
assertThat(messageResponseDtos).extracting("content") | ||
|