use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testWrongNotificationAndTZ022.
@Test
public void testWrongNotificationAndTZ022() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("2019-07-14T13:34-022");
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 testRandomChars3.
@Test
public void testRandomChars3() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("P12345");
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 testRPT4H.
@Test
public void testRPT4H() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R/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 testR2PT4H20190527T130000ZWrong.
@Test
public void testR2PT4H20190527T130000ZWrong() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R2/PT4H/2019-05-27T13:00:00ZZ");
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 testUnBounded2D.
@Test
public void testUnBounded2D() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R/P2D");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations