2 delete tests fail
@@ -48,18 +48,18 @@ class HabitStatusRepoTest {
assertEquals(Optional.empty(),habitStatus);
}
-// @Test
-// void deleteByUserIdAndHabitIdTest() {
-// habitStatusRepo.deleteByUserIdAndHabitId(2L, 1L);
-// Optional<HabitStatus> habitStatus = habitStatusRepo.findByUserIdAndHabitId(2L,1L);
-// assertEquals(Optional.empty(),habitStatus);
-// }
-//
-// @Test
-// void deleteByUserIdAndHabitIdAndCreateDateTest() {
-// habitStatusRepo.deleteByUserIdAndHabitIdAndCreateDate(2L, 1L,
-// ZonedDateTime.parse("2020-09-10T03:00:00+00"));
-// Optional<HabitStatus> habitStatus = habitStatusRepo.findByUserIdAndHabitId(2L,1L);
-// assertEquals(Optional.empty(),habitStatus);
-// }
+ @Test
+ void deleteByUserIdAndHabitIdTest() {
+ habitStatusRepo.deleteByUserIdAndHabitId(2L, 1L);
+ Optional<HabitStatus> habitStatus = habitStatusRepo.findByUserIdAndHabitId(2L,1L);
+ assertEquals(Optional.empty(),habitStatus);
+ }
+
+ @Test
+ void deleteByUserIdAndHabitIdAndCreateDateTest() {
+ habitStatusRepo.deleteByUserIdAndHabitIdAndCreateDate(2L, 1L,
+ ZonedDateTime.parse("2020-09-10T03:00:00+00"));
+ Optional<HabitStatus> habitStatus = habitStatusRepo.findByUserIdAndHabitId(2L,1L);
+ assertEquals(Optional.empty(),habitStatus);
+ }
}
\ No newline at end of file
