use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testISO8601WithTZ02ZRepeatable1AndPeriodTooBigValue.
@Test
public void testISO8601WithTZ02ZRepeatable1AndPeriodTooBigValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R1/2019-07-14T13:34-02/PT3333333333333333333M");
boolean result = new NotificationValueValidator().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 testISO8601WrongWithTZ00ZRepeatableZeroUntilStateChangesAndPeriodZeroValue.
@Test
public void testISO8601WrongWithTZ00ZRepeatableZeroUntilStateChangesAndPeriodZeroValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R0/2019-07-14T13:34:00Z/PT1M");
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 testP2M2D.
@Test
public void testP2M2D() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("P2M2D");
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 testNotificationAndTZ002.
@Test
public void testNotificationAndTZ002() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("2019-07-14T13:34:00Z");
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 testR120011201T133402RP1DT3H.
@Test
public void testR120011201T133402RP1DT3H() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R1/2001-12-01T13:34-02/P1DT1H");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations