m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/pl/edu/mimuw/cloudatlas/agent/SchedulerTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/java/pl/edu/mimuw/cloudatlas/agent/SchedulerTest.java b/src/test/java/pl/edu/mimuw/cloudatlas/agent/SchedulerTest.java
index ccb4c8d..0dab0e8 100644
--- a/src/test/java/pl/edu/mimuw/cloudatlas/agent/SchedulerTest.java
+++ b/src/test/java/pl/edu/mimuw/cloudatlas/agent/SchedulerTest.java
@@ -23,13 +23,15 @@ public class SchedulerTest {
public SchedulerTest() {
this.modules = initializeModule();
- this.executors = Agent.initializeExecutors(modules);
- this.executorThreads = Agent.initializeExecutorThreads(executors);
+ this.executors = AgentConfig.initializeExecutors(modules);
+ this.executorThreads = AgentConfig.initializeExecutorThreads(executors);
this.eventBus = new EventBus(executors);
this.eventBusThread = new Thread(eventBus);
eventBusThread.start();
}
+ private
+
public HashMap<ModuleType, Module> initializeModule() {
HashMap<ModuleType, Module> modules = new HashMap<ModuleType, Module>();
modules.put(ModuleType.TIMER_SCHEDULER, new TimerScheduler(ModuleType.TIMER_SCHEDULER));