diff --git a/backend/src/main/java/corea/scheduler/service/AutomaticMatchingScheduler.java b/backend/src/main/java/corea/scheduler/service/AutomaticMatchingScheduler.java index b3f453ce..fd3e2d8d 100644 --- a/backend/src/main/java/corea/scheduler/service/AutomaticMatchingScheduler.java +++ b/backend/src/main/java/corea/scheduler/service/AutomaticMatchingScheduler.java @@ -26,13 +26,11 @@ public class AutomaticMatchingScheduler { private final AutomaticMatchingExecutor automaticMatchingExecutor; private final Map> scheduledTasks; - @Autowired public AutomaticMatchingScheduler(TaskScheduler taskScheduler, AutomaticMatchingExecutor automaticMatchingExecutor) { - this.taskScheduler = taskScheduler; - this.automaticMatchingExecutor = automaticMatchingExecutor; - this.scheduledTasks = new ConcurrentHashMap<>(); + this(taskScheduler, automaticMatchingExecutor, new ConcurrentHashMap<>()); } + @Autowired public AutomaticMatchingScheduler(TaskScheduler taskScheduler, AutomaticMatchingExecutor automaticMatchingExecutor, Map> scheduledTasks) { this.taskScheduler = taskScheduler; this.automaticMatchingExecutor = automaticMatchingExecutor;