Skip to content

Commit

Permalink
fix: LocalDateTime 비교 제외 진행
Browse files Browse the repository at this point in the history
- 값 비교 시 LocalDateTime 제외되도록 수정
  • Loading branch information
devholic22 committed Jul 13, 2024
1 parent 4ea7046 commit 24d5187
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ class 알림_조회_정상 {
assertSoftly(softly -> {
softly.assertThat(found).hasSize(9);
softly.assertThat(found.hasNext()).isTrue();
softly.assertThat(found.getContent()).isEqualTo(expected);
softly.assertThat(found.getContent())
.usingRecursiveFieldByFieldElementComparatorIgnoringFields("createdAt", "updatedAt", "deletedAt")
.isEqualTo(expected);
});
}

Expand Down Expand Up @@ -99,7 +101,7 @@ private List<AlertSearchResponse> extractAlertResponsesWithLimit(final List<Aler
assertSoftly(softly -> {
softly.assertThat(found).isNotEmpty();
softly.assertThat(found.get()).usingRecursiveComparison()
.ignoringFields("id")
.ignoringFields("id", "createdAt", "updatedAt", "deletedAt")
.isEqualTo(alert);
});
}
Expand Down

0 comments on commit 24d5187

Please sign in to comment.