use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testISO8601DataTimeValue.
@Test
public void testISO8601DataTimeValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("2019-07-14T13:34-02");
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 testBounded5S.
@Test
public void testBounded5S() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R5/PT2S");
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 testR3PT4HWrong.
@Test
public void testR3PT4HWrong() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R3/PT4HZ");
boolean result = validator.isValid(value, 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 testISO8601WithTZ0245RepeatableValue.
@Test
public void testISO8601WithTZ0245RepeatableValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("2019-07-14T13:34-02:45");
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 testDurations.
@Test
public void testDurations() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("P1Y2M5DT4H5M8S6MS");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations