use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testISO8601RepeatableValue.
@Test
public void testISO8601RepeatableValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R/PT33M");
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 testRandomChars2.
@Test
public void testRandomChars2() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("Pтыфц");
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 testWrongYearRepeatableUntilNotification.
@Test
public void testWrongYearRepeatableUntilNotification() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R/P33Y");
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 testRPT5m30s.
@Test
public void testRPT5m30s() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R/PT5m30s");
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 testPT4HOrPT6H.
@Test
public void testPT4HOrPT6H() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("PT4H,PT6H");
boolean result = validator.isValid(notification, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations