Skip to content

Commit

Permalink
Development: Fix cron task name in data export schedule tests (#9312)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAnzinger authored and JohannesWt committed Sep 23, 2024
1 parent 2f80648 commit 14050cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static Stream<Arguments> provideCreationDatesAndExpectedToDelete() {
@Test
void testCronDataExportCreationTaskScheduledEveryDayAt4AMByDefault() {
final String cronExpression = "0 0 4 * * *";
final String cronTaskName = "de.tum.cit.aet.artemis.service.scheduled.DataExportScheduleService.createDataExportsAndDeleteOldOnes";
final String cronTaskName = "de.tum.cit.aet.artemis.core.service.DataExportScheduleService.createDataExportsAndDeleteOldOnes";
Set<ScheduledTask> scheduledTasks = scheduledTaskHolder.getScheduledTasks();
long scheduledCronTasksToCreateDataExportsAt4AM = scheduledTasks.stream().filter(scheduledTask -> scheduledTask.getTask() instanceof CronTask)
.map(scheduledTask -> (CronTask) scheduledTask.getTask()).filter(cronTask -> (cronExpression).equals(cronTask.getExpression()))
Expand Down

0 comments on commit 14050cb

Please sign in to comment.