Search in sources :

Example 1 with Decision

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());
}
Also used : Task(com.netflix.conductor.common.metadata.tasks.Task) WorkflowSystemTask(com.netflix.conductor.core.execution.tasks.WorkflowSystemTask) Decision(com.netflix.conductor.core.execution.tasks.Decision) Test(org.junit.Test)

Aggregations

Task (com.netflix.conductor.common.metadata.tasks.Task)1 Decision (com.netflix.conductor.core.execution.tasks.Decision)1 WorkflowSystemTask (com.netflix.conductor.core.execution.tasks.WorkflowSystemTask)1 Test (org.junit.Test)1