/** * Create an instance of {@link StorageUnitNotificationEventParamsDto } * */ public StorageUnitNotificationEventParamsDto createStorageUnitNotificationEventParamsDto() { return new StorageUnitNotificationEventParamsDto(); }
public Object createNewInstance() { return new StorageUnitNotificationEventParamsDto(); }
@Override public StorageUnitNotificationEventParamsDto build() { if (_storedValue == null) { return this.init(new StorageUnitNotificationEventParamsDto()); } else { return ((StorageUnitNotificationEventParamsDto) _storedValue); } }
StorageUnitNotificationEventParamsDto notificationEventParams = new StorageUnitNotificationEventParamsDto(); notificationEventParams.setStorageUnitNotificationRegistration(storageUnitNotificationRegistration); notificationEventParams.setNotificationJobAction(notificationJobActionEntity);
StorageUnitNotificationEventParamsDto notificationEventParams = new StorageUnitNotificationEventParamsDto(); notificationEventParams.setStorageUnitNotificationRegistration(storageUnitNotificationRegistration); notificationEventParams.setNotificationJobAction(notificationJobActionEntity);
@Test public void testGetIdentifyingInformationInvalidParamsDto() { // Get the notification action service for the business object data registration event. NotificationActionService notificationActionService = notificationActionFactory .getNotificationActionHandler(NotificationTypeEntity.NOTIFICATION_TYPE_BDATA, NotificationEventTypeEntity.EventTypesBdata.BUS_OBJCT_DATA_RGSTN.name()); // Try to retrieve the identifying information for the notification event using an invalid type of the parameters DTO. try { notificationActionService.getIdentifyingInformation(new StorageUnitNotificationEventParamsDto(), businessObjectDataHelper); fail(); } catch (IllegalStateException e) { assertEquals("Notification event parameters DTO passed to the method must be an instance of BusinessObjectDataNotificationEventParamsDto.", e.getMessage()); } }
@Test public void testPerformNotificationActionInvalidParamsDto() throws Exception { // Get the notification action service for the business object data registration event. NotificationActionService notificationActionService = notificationActionFactory .getNotificationActionHandler(NotificationTypeEntity.NOTIFICATION_TYPE_BDATA, NotificationEventTypeEntity.EventTypesBdata.BUS_OBJCT_DATA_RGSTN.name()); // Try to perform a notification action for the business object data registration event with an invalid type of the parameters DTO. try { notificationActionService.performNotificationAction(new StorageUnitNotificationEventParamsDto()); fail(); } catch (IllegalStateException e) { assertEquals("Notification event parameters DTO passed to the method must be an instance of BusinessObjectDataNotificationEventParamsDto.", e.getMessage()); } } }
StorageUnitNotificationEventParamsDto storageUnitNotificationEventParamsDto = new StorageUnitNotificationEventParamsDto(); storageUnitNotificationEventParamsDto.setBusinessObjectData(businessObjectDataHelper.createBusinessObjectDataFromEntity(businessObjectDataEntity)); storageUnitNotificationEventParamsDto.setStorageUnitNotificationRegistration(storageUnitNotificationRegistrationEntity);