use of org.nhindirect.gateway.smtp.SmtpAgentException in project nhin-d by DirectProject.
the class RecipAndSenderIsNotLocalTest method testNullDomainList.
public void testNullDomainList() throws Exception {
final MatcherConfig newConfig = mock(MatcherConfig.class);
when(newConfig.getCondition()).thenReturn(null);
RecipAndSenderIsNotLocal matcher = new RecipAndSenderIsNotLocal();
boolean exceptionOccured = false;
try {
matcher.init(newConfig);
} catch (SmtpAgentException e) {
exceptionOccured = true;
}
assertTrue(exceptionOccured);
}
Aggregations