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);
}
Aggregations