use of org.nhindirect.config.service.impl.ConfigurationServiceImpl in project nhin-d by DirectProject.
the class ConfigurationServiceTest method testAddDomain.
/**
* Test the addDomain method.
*/
public void testAddDomain() throws Exception {
final DomainService domainService = context.mock(DomainService.class);
final Domain domain = new Domain("domain");
context.checking(new Expectations() {
{
oneOf(domainService).addDomain(domain);
}
});
ConfigurationServiceImpl service = new ConfigurationServiceImpl();
service.setDomainSvc(domainService);
try {
service.addDomain(domain);
} catch (Exception e) {
fail("Exception thrown");
}
}
Aggregations