use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow in project kie-wb-common by kiegroup.
the class NotificationValueValidatorTest method testR3PT4H.
@Test
public void testR3PT4H() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R3/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 testOldTimeFormat.
@Test
public void testOldTimeFormat() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("2d6H48m32s12mS");
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 testPasdfasdkValue.
@Test
public void testPasdfasdkValue() {
NotificationRow notification = new NotificationRow();
notification.setExpiresAt("Pasdfa;sdk");
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 testR1P1m14d.
@Test
public void testR1P1m14d() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("R1/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 testExampleFromTheTip.
@Test
public void testExampleFromTheTip() {
NotificationRow value = new NotificationRow();
value.setExpiresAt("2d6H48m32s12mS");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations