return null;
}
@Test
public void testAddTasks() {
ITaskConfig task = makeTask(JIM, MY_JOB);
String taskId = "a";
expect(taskIdGenerator.generate(task, 3)).andReturn(taskId);
expectStateTransitions(taskId, INIT, PENDING);
control.replay();
insertTask(task, 3);
ScheduledTask expected = new ScheduledTask()
.setStatus(PENDING)
.setTaskEvents(ImmutableList.of(new TaskEvent()
.setTimestamp(clock.nowMillis())
.setScheduler(StateManagerImpl.LOCAL_HOST_SUPPLIER.get())
.setStatus(PENDING)))
.setAssignedTask(new AssignedTask()
.setInstanceId(3)
.setTaskId(taskId)
.setTask(task.newBuilder()));
assertEquals(ImmutableSet.of(IScheduledTask.build(expected)),
Storage.Util.consistentFetchTasks(storage, Query.taskScoped(taskId)));
}