use of com.netflix.conductor.dao.EventHandlerDAO in project conductor by Netflix.
the class MetadataServiceTest method before.
@Before
public void before() {
metadataDAO = Mockito.mock(MetadataDAO.class);
eventHandlerDAO = Mockito.mock(EventHandlerDAO.class);
eventQueues = Mockito.mock(EventQueues.class);
configuration = Mockito.mock(Configuration.class);
when(configuration.isOwnerEmailMandatory()).thenReturn(true);
Injector injector = Guice.createInjector(new AbstractModule() {
@Override
protected void configure() {
bind(MetadataDAO.class).toInstance(metadataDAO);
bind(EventHandlerDAO.class).toInstance(eventHandlerDAO);
bind(EventQueues.class).toInstance(eventQueues);
bind(Configuration.class).toInstance(configuration);
install(new ValidationModule());
bindInterceptor(Matchers.any(), Matchers.annotatedWith(Service.class), new ServiceInterceptor(getProvider(Validator.class)));
}
});
metadataService = injector.getInstance(MetadataServiceImpl.class);
}
Aggregations