Search in sources :

Example 1 with DaoUserEventHookBiz

use of net.solarnetwork.central.user.event.biz.dao.DaoUserEventHookBiz in project solarnetwork-central by SolarNetwork.

the class UserEventHookBizConfig method userEventHookBiz.

@Bean
public UserEventHookBiz userEventHookBiz() {
    DaoUserEventHookBiz biz = new DaoUserEventHookBiz(userNodeEventHookConfiguationDao);
    biz.setDatumEventProducers(datumAppEventProducers);
    biz.setNodeEventHookServices(userNodeEventHookServices);
    ResourceBundleMessageSource msgSource = new ResourceBundleMessageSource();
    msgSource.setBasenames("net.solarnetwork.central.user.event.biz.UserEventHook");
    biz.setMessageSource(msgSource);
    return biz;
}
Also used : DaoUserEventHookBiz(net.solarnetwork.central.user.event.biz.dao.DaoUserEventHookBiz) ResourceBundleMessageSource(org.springframework.context.support.ResourceBundleMessageSource) Bean(org.springframework.context.annotation.Bean)

Example 2 with DaoUserEventHookBiz

use of net.solarnetwork.central.user.event.biz.dao.DaoUserEventHookBiz in project solarnetwork-central by SolarNetwork.

the class DaoUserEventHookBizTests method setup.

@Before
public void setup() {
    nodeEventHookConfigurationDao = EasyMock.createMock(UserNodeEventHookConfigurationDao.class);
    biz = new DaoUserEventHookBiz(nodeEventHookConfigurationDao);
    ResourceBundleMessageSource ms = new ResourceBundleMessageSource();
    ms.setBasename("net/solarnetwork/central/user/event/biz/dao/test/test-messages-01");
    biz.setMessageSource(ms);
    methodMocks = new ArrayList<>(4);
}
Also used : DaoUserEventHookBiz(net.solarnetwork.central.user.event.biz.dao.DaoUserEventHookBiz) ResourceBundleMessageSource(org.springframework.context.support.ResourceBundleMessageSource) UserNodeEventHookConfigurationDao(net.solarnetwork.central.user.event.dao.UserNodeEventHookConfigurationDao) Before(org.junit.Before)

Aggregations

DaoUserEventHookBiz (net.solarnetwork.central.user.event.biz.dao.DaoUserEventHookBiz)2 ResourceBundleMessageSource (org.springframework.context.support.ResourceBundleMessageSource)2 UserNodeEventHookConfigurationDao (net.solarnetwork.central.user.event.dao.UserNodeEventHookConfigurationDao)1 Before (org.junit.Before)1 Bean (org.springframework.context.annotation.Bean)1