Skip to content

Commit

Permalink
Add asserts to test
Browse files Browse the repository at this point in the history
  • Loading branch information
kozorukov committed Mar 13, 2024
1 parent f140925 commit 6f81435
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public void givenMessageSending_whenGetDialogMessages_thenReturnsCorrectDialog()
assertThat(dialog).hasSize(2);
assertThat(dialog.getContent().get(0).getMessage()).isEqualTo(message2);
assertThat(dialog.getContent().get(1).getMessage()).isEqualTo(message1);

assertThat(dialog.getContent().get(0).isMine()).isFalse();
assertThat(dialog.getContent().get(1).isMine()).isTrue();
}

private Message saveMessage(UUID senderId, UUID receiverId) {
Expand Down

0 comments on commit 6f81435

Please sign in to comment.