Skip to content

Commit

Permalink
#1012: remove findX test (already covered by PersistenceBase tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
clean-coder committed Oct 1, 2024
1 parent a7908c4 commit 274a02a
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,6 @@ void updateKeyResultShouldThrowExceptionWhenAlreadyUpdated() {

}

@Test
void getAllCheckInShouldReturnListOfAllCheckIns() {
List<CheckIn> checkIns = checkInPersistenceService.findAll();

assertEquals(19, checkIns.size());
}

@Test
void getCheckInByIdShouldReturnCheckInProperly() {
CheckIn checkIn = checkInPersistenceService.findById(20L);

assertEquals(20L, checkIn.getId());
assertEquals(0.5, ((CheckInMetric) checkIn).getValue(), 0.01);
assertEquals(
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore "
+ "magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores ",
checkIn.getChangeInfo());
}

@Test
void shouldGetCheckInsByKeyResultIdAndOrderThemByDateDesc() {
List<CheckIn> checkIns = checkInPersistenceService.getCheckInsByKeyResultIdOrderByCheckInDateDesc(7L);
Expand Down

0 comments on commit 274a02a

Please sign in to comment.