use of org.springframework.jms.support.destination.DestinationResolutionException in project webcert by sklintyg.
the class NotificationServiceImplTest method testDraftDeletedJmsException.
@Test(expected = JmsException.class)
public void testDraftDeletedJmsException() throws Exception {
doThrow(new DestinationResolutionException("")).when(template).send(any(MessageCreator.class));
try {
notificationService.sendNotificationForDraftDeleted(createUtkast());
} finally {
verify(template).send(any(MessageCreator.class));
verifyZeroInteractions(mockMonitoringLogService);
}
}
use of org.springframework.jms.support.destination.DestinationResolutionException in project webcert by sklintyg.
the class NotificationServiceImplTest method testDraftChangedJmsException.
@Test(expected = JmsException.class)
public void testDraftChangedJmsException() throws Exception {
doThrow(new DestinationResolutionException("")).when(template).send(any(MessageCreator.class));
try {
notificationService.sendNotificationForDraftChanged(createUtkast());
} finally {
verify(template).send(any(MessageCreator.class));
verifyZeroInteractions(mockMonitoringLogService);
}
}
use of org.springframework.jms.support.destination.DestinationResolutionException in project webcert by sklintyg.
the class NotificationServiceImplTest method testDraftSignedJmsException.
@Test(expected = JmsException.class)
public void testDraftSignedJmsException() throws Exception {
doThrow(new DestinationResolutionException("")).when(template).send(any(MessageCreator.class));
try {
notificationService.sendNotificationForDraftSigned(createUtkast());
} finally {
verify(template).send(any(MessageCreator.class));
verifyZeroInteractions(mockMonitoringLogService);
}
}
Aggregations