Search in sources :

Example 11 with NotificationRegistrationStatusUpdateRequest

use of org.finra.herd.model.api.xml.NotificationRegistrationStatusUpdateRequest in project herd by FINRAOS.

the class NotificationRegistrationStatusServiceTest method testUpdateNotificationRegistrationStatusAssertThrowWhenStatusNull.

@Test
public void testUpdateNotificationRegistrationStatusAssertThrowWhenStatusNull() {
    try {
        notificationRegistrationStatusService.updateNotificationRegistrationStatus(NAMESPACE, NOTIFICATION_NAME, new NotificationRegistrationStatusUpdateRequest(null));
        fail();
    } catch (Exception e) {
        assertEquals(IllegalArgumentException.class, e.getClass());
        assertEquals("The notification registration status must be specified", e.getMessage());
    }
}
Also used : NotificationRegistrationStatusUpdateRequest(org.finra.herd.model.api.xml.NotificationRegistrationStatusUpdateRequest) ObjectNotFoundException(org.finra.herd.model.ObjectNotFoundException) Test(org.junit.Test)

Aggregations

NotificationRegistrationStatusUpdateRequest (org.finra.herd.model.api.xml.NotificationRegistrationStatusUpdateRequest)11 Test (org.junit.Test)11 ObjectNotFoundException (org.finra.herd.model.ObjectNotFoundException)7 NotificationRegistrationKey (org.finra.herd.model.api.xml.NotificationRegistrationKey)4 NotificationRegistrationStatusUpdateResponse (org.finra.herd.model.api.xml.NotificationRegistrationStatusUpdateResponse)4