use of org.nhindirect.config.service.impl.DNSServiceImpl in project nhin-d by DirectProject.
the class DNSServiceTest method testRemoveDNSByRecordId.
/**
* Test the removeDNSByRecordId method.
*/
public void testRemoveDNSByRecordId() {
final DNSDao dnsDao = context.mock(DNSDao.class);
final long recId = 8387;
context.checking(new Expectations() {
{
oneOf(dnsDao).remove(recId);
}
});
DNSServiceImpl service = new DNSServiceImpl();
service.setDao(dnsDao);
try {
service.removeDNSByRecordId(recId);
} catch (Exception e) {
fail("Exception thrown");
}
}
Aggregations