use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method test7h.
@Test
public void test7h() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("7h");
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 testISO8601WrongWithTZ00ZRepeatable10UntilStateChangesAndPeriodZeroValue.
@Test
public void testISO8601WrongWithTZ00ZRepeatable10UntilStateChangesAndPeriodZeroValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R10/2019-07-14T13:34:00Z/PT0M");
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 test10DigExpiresAtNotificationRow.
@Test
public void test10DigExpiresAtNotificationRow() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("1111111111d");
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 testISO8601WithTZ00ZRepeatableUntilStateChangesValue.
@Test
public void testISO8601WithTZ00ZRepeatableUntilStateChangesValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R/2019-07-14T13:34:00Z/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 test2d50s500ms.
@Test
public void test2d50s500ms() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("2d50s500ms");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations