use of edu.iu.dsc.tws.api.compute.schedule.elements.TaskSchedulePlan in project twister2 by DSC-SPIDAL.
the class TaskSchedulerTest method testUniqueSchedules1.
@Test
public void testUniqueSchedules1() {
int parallel = 2;
ComputeGraph graph = createStreamingGraph(parallel);
TaskScheduler scheduler = new TaskScheduler();
Config config = getConfig();
scheduler.initialize(config);
WorkerPlan workerPlan = createWorkPlan(parallel);
if (graph.getOperationMode().equals("STREAMING")) {
Assert.assertEquals(scheduler.getClass(), TaskSchedulerContext.streamingTaskSchedulingClass(config));
}
TaskSchedulePlan plan1 = scheduler.schedule(graph, workerPlan);
Assert.assertNotNull(plan1);
}
Aggregations