ScheduleNow test with running advanced Schedule
All checks were successful
Java CI with Maven / build (push) Successful in 48s

This commit is contained in:
Sebastian Böckelmann 2023-11-11 20:26:03 +01:00
parent 64ab22b7b0
commit 234eacca0c

View File

@ -161,6 +161,10 @@ public class ScheduleServiceTest {
ServiceResult<AbstractSchedule> result_3 = taskScheduleService.scheduleNow(entityManager.find(Task.class, 5L));
assertEquals(ServiceExitCode.OK, result_3.getExitCode());
assertThat(entityManager.find(BasicTaskSchedule.class, result_3.getResult().getScheduleID())).isNotNull();
//Situation 4: Running Advanced Schedule
ServiceResult<AbstractSchedule> result_4 = taskScheduleService.scheduleNow(entityManager.find(Task.class, 17L));
assertEquals(ServiceExitCode.ENTITY_ALREADY_EXIST, result_4.getExitCode());
}
@Test