Search in sources :

Example 6 with SettingServiceImpl

use of org.nhindirect.config.service.impl.SettingServiceImpl in project nhin-d by DirectProject.

the class SettingServiceTest method testAllSettings.

/**
     * Test the addAnchors method.
     */
public void testAllSettings() {
    final SettingDao settingDao = context.mock(SettingDao.class);
    context.checking(new Expectations() {

        {
            oneOf(settingDao).getAll();
        }
    });
    SettingServiceImpl service = new SettingServiceImpl();
    service.setDao(settingDao);
    try {
        service.getAllSettings();
    } catch (Exception e) {
        fail("Exception thrown");
    }
}
Also used : Expectations(org.jmock.Expectations) SettingServiceImpl(org.nhindirect.config.service.impl.SettingServiceImpl) SettingDao(org.nhindirect.config.store.dao.SettingDao)

Aggregations

Expectations (org.jmock.Expectations)6 SettingServiceImpl (org.nhindirect.config.service.impl.SettingServiceImpl)6 SettingDao (org.nhindirect.config.store.dao.SettingDao)6