use of com.netflix.conductor.core.execution.tasks.Decision in project conductor by Netflix.
the class TestWorkflowRepairService method assertSyncSystemTasksAreNotCheckedAgainstQueue.
@Test
public void assertSyncSystemTasksAreNotCheckedAgainstQueue() {
// Create a Decision object to init WorkflowSystemTask registry.
Decision decision = new Decision();
Task task = new Task();
task.setTaskType("DECISION");
task.setStatus(Task.Status.SCHEDULED);
assertFalse(workflowRepairService.verifyAndRepairTask(task));
// Verify that queue contains is never checked for sync system tasks
verify(queueDAO, never()).containsMessage(anyString(), anyString());
// Verify that queue message is never pushed for sync system tasks
verify(queueDAO, never()).push(anyString(), anyString(), anyLong());
}
Aggregations