schedule-refactor #45

Merged
sebastian merged 18 commits from schedule-refactor into master 2023-11-11 18:56:16 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 6c0dcbec02 - Show all commits

View File

@ -30,6 +30,6 @@ public class ScheduleRepositoryTest {
User referenceUser_2 = entityManager.find(User.class, 2L);
assertEquals(0, scheduleRepository.findAllByUsername(referenceUser_2.getUsername()).size());
assertEquals(2, scheduleRepository.findAllByUsername(referenceUser_1.getUsername()).size());
assertEquals(3, scheduleRepository.findAllByUsername(referenceUser_1.getUsername()).size());
}
}

View File

@ -48,9 +48,10 @@ public class ScheduleServiceTest {
assertEquals(0, taskScheduleService.getAllSchedulesOfUser(username2).size());
List<AbstractSchedule> result_1 = taskScheduleService.getAllSchedulesOfUser(username);
assertEquals(2, result_1.size());
assertEquals(3, result_1.size());
assertTrue(result_1.contains(entityManager.find(AbstractSchedule.class, 1L)));
assertTrue(result_1.contains(entityManager.find(AbstractSchedule.class, 2L)));
assertTrue(result_1.contains(entityManager.find(AbstractSchedule.class, 3L)));
}
@Test