use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testRP1M14d.
@Test
public void testRP1M14d() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R/P1M14D");
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 testVariableNameWrongClass.
@Test
public void testVariableNameWrongClass() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("#{class}");
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 testWrongHourRepeatableZeroNotification.
@Test
public void testWrongHourRepeatableZeroNotification() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("R0/P33H");
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 testWrongYearNotificationAndTZ02.
@Test
public void testWrongYearNotificationAndTZ02() {
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 testZAnd10DigExpiresAtNotificationRow.
@Test
public void testZAnd10DigExpiresAtNotificationRow() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("Z1111111111d");
boolean result = validator.isValid(value, context);
assertFalse(result);
assertEquals(NotificationValueValidator.WRONG_EXPIRES_AT_EXPRESSION, errorMessages.get(0));
}
Aggregations