Search in sources :

Example 1 with MockQueueProvider

use of com.netflix.conductor.core.events.MockQueueProvider in project conductor by Netflix.

the class TestEvent method setup.

@Before
public void setup() {
    Map<String, EventQueueProvider> providers = new HashMap<>();
    providers.put("sqs", new MockQueueProvider("sqs"));
    providers.put("conductor", new MockQueueProvider("conductor"));
    parametersUtils = new ParametersUtils();
    eventQueues = new EventQueues(providers, parametersUtils);
    testWorkflowDefinition = new WorkflowDef();
    testWorkflowDefinition.setName("testWorkflow");
    testWorkflowDefinition.setVersion(2);
}
Also used : WorkflowDef(com.netflix.conductor.common.metadata.workflow.WorkflowDef) HashMap(java.util.HashMap) EventQueues(com.netflix.conductor.core.events.EventQueues) EventQueueProvider(com.netflix.conductor.core.events.EventQueueProvider) DynoEventQueueProvider(com.netflix.conductor.core.events.queue.dyno.DynoEventQueueProvider) ParametersUtils(com.netflix.conductor.core.execution.ParametersUtils) MockQueueProvider(com.netflix.conductor.core.events.MockQueueProvider) Before(org.junit.Before)

Aggregations

WorkflowDef (com.netflix.conductor.common.metadata.workflow.WorkflowDef)1 EventQueueProvider (com.netflix.conductor.core.events.EventQueueProvider)1 EventQueues (com.netflix.conductor.core.events.EventQueues)1 MockQueueProvider (com.netflix.conductor.core.events.MockQueueProvider)1 DynoEventQueueProvider (com.netflix.conductor.core.events.queue.dyno.DynoEventQueueProvider)1 ParametersUtils (com.netflix.conductor.core.execution.ParametersUtils)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1