Search in sources :

Example 6 with WorkflowExecutor

use of com.netflix.conductor.core.execution.WorkflowExecutor in project conductor by Netflix.

the class WorkflowBulkServiceTest method before.

@Before
public void before() {
    workflowExecutor = Mockito.mock(WorkflowExecutor.class);
    Injector injector = Guice.createInjector(new AbstractModule() {

        @Override
        protected void configure() {
            bind(WorkflowExecutor.class).toInstance(workflowExecutor);
            install(new ValidationModule());
            bindInterceptor(Matchers.any(), Matchers.annotatedWith(Service.class), new ServiceInterceptor(getProvider(Validator.class)));
        }
    });
    workflowBulkService = injector.getInstance(WorkflowBulkServiceImpl.class);
}
Also used : Injector(com.google.inject.Injector) WorkflowExecutor(com.netflix.conductor.core.execution.WorkflowExecutor) ServiceInterceptor(com.netflix.conductor.interceptors.ServiceInterceptor) ValidationModule(com.netflix.conductor.core.config.ValidationModule) Validator(javax.validation.Validator) AbstractModule(com.google.inject.AbstractModule) Before(org.junit.Before)

Aggregations

WorkflowExecutor (com.netflix.conductor.core.execution.WorkflowExecutor)6 ParametersUtils (com.netflix.conductor.core.execution.ParametersUtils)5 HashMap (java.util.HashMap)5 Before (org.junit.Before)5 Task (com.netflix.conductor.common.metadata.tasks.Task)4 Workflow (com.netflix.conductor.common.run.Workflow)4 LinkedHashMap (java.util.LinkedHashMap)4 Map (java.util.Map)4 Message (com.netflix.conductor.core.events.queue.Message)3 ObservableQueue (com.netflix.conductor.core.events.queue.ObservableQueue)3 JsonUtils (com.netflix.conductor.core.utils.JsonUtils)3 ExecutionService (com.netflix.conductor.service.ExecutionService)3 MetadataService (com.netflix.conductor.service.MetadataService)3 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 Uninterruptibles (com.google.common.util.concurrent.Uninterruptibles)2 EventExecution (com.netflix.conductor.common.metadata.events.EventExecution)2 EventHandler (com.netflix.conductor.common.metadata.events.EventHandler)2 Action (com.netflix.conductor.common.metadata.events.EventHandler.Action)2 Type (com.netflix.conductor.common.metadata.events.EventHandler.Action.Type)2 StartWorkflow (com.netflix.conductor.common.metadata.events.EventHandler.StartWorkflow)2