use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testMonthRepeatableUntilStateChangesNotification.
@Test
public void testMonthRepeatableUntilStateChangesNotification() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R/P33M");
boolean result = validator.isValid(notification, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testWrongHourRepeatableUntilNotification.
@Test
public void testWrongHourRepeatableUntilNotification() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R/P33H");
boolean result = validator.isValid(notification, context);
assertFalse(result);
assertEquals(NotificationValueValidator.WRONG_EXPIRES_AT_EXPRESSION, errorMessages.get(0));
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testR220190527T130000ZPT4H.
@Test
public void testR220190527T130000ZPT4H() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R2/2019-05-27T13:00:00Z/PT4H");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testRP1DT3H.
@Test
public void testRP1DT3H() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R/P1DT3H");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testWrongTimesZeroRepeatableZeroNotification.
@Test
public void testWrongTimesZeroRepeatableZeroNotification() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R0/PT0H");
boolean result = validator.isValid(notification, context);
assertFalse(result);
assertEquals(NotificationValueValidator.WRONG_EXPIRES_AT_EXPRESSION, errorMessages.get(0));
}
Aggregations