use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testR120011201T133402P1M1D.
@Test
public void testR120011201T133402P1M1D() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R1/2001-12-01T13:34+02/P1M1D");
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 testR20011201T133402P1DT1H.
@Test
public void testR20011201T133402P1DT1H() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R1/2001-12-01T13:34-02/P1DT1H");
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 testP2M2DT2S.
@Test
public void testP2M2DT2S() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("P2M2DT2S");
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 testISO8601WithWrongDelimiterRepeatableValue.
@Test
public void testISO8601WithWrongDelimiterRepeatableValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("2019-07-14W13:34-02");
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 test4DigExpiresAtNotificationRow.
@Test
public void test4DigExpiresAtNotificationRow() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("1111d");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations