use of com.qcadoo.model.beans.sample.CustomEntityService in project qcadoo by qcadoo.
the class EntityHookDefinitionImplTest method init.
@Before
public final void init() throws HookInitializationException {
MockitoAnnotations.initMocks(this);
ApplicationContext applicationContext = Mockito.mock(ApplicationContext.class);
BDDMockito.given(applicationContext.getBean(CustomEntityService.class)).willReturn(new CustomEntityService());
entityHookDefinitionImpl = new EntityHookDefinitionImpl("com.qcadoo.model.beans.sample.CustomEntityService", "onSave", SOME_PLUGIN_IDENTIFIER, applicationContext);
PluginUtilsService pluginUtil = new PluginUtilsService(pluginStateResolver);
pluginUtil.init();
}
Aggregations