use of org.wso2.carbon.apimgt.impl.notification.util.NewAPIVersionEmailNotifierWrapper in project carbon-apimgt by wso2.
the class NewAPIVersionEmailNotifierTest method testShouldNotThrowExceptionWhenRetrievingNotifiers.
@Test
public void testShouldNotThrowExceptionWhenRetrievingNotifiers() throws APIManagementException {
NewAPIVersionEmailNotifier emailNotifier = new NewAPIVersionEmailNotifierWrapper(registry, claimsRetriever);
ClaimsRetriever claimsRetriever = Mockito.mock(ClaimsRetriever.class);
Mockito.doNothing().when(claimsRetriever).init();
try {
emailNotifier.getNotifierSet(notificationDTO);
} catch (NotificationException e) {
Assert.fail("Should not throw any exceptions");
}
}
Aggregations