use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.
the class ReassignmentTypeListValueTest method getReassignmentValues.
private List<ReassignmentValue> getReassignmentValues() {
List<ReassignmentValue> result = new ArrayList<>();
result.add(new ReassignmentValue("AAA", "1h", Arrays.asList(new String[] { "foo", "bar", "baz" }), Arrays.asList(new String[] { "foo", "bar", "baz" })));
return result;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.
the class ReassignmentsInfoTest method getReassignmentValues.
private List<ReassignmentValue> getReassignmentValues() {
List<ReassignmentValue> result = new ArrayList<>();
result.add(new ReassignmentValue("AAA", "1h", Arrays.asList(new String[] { "foo", "bar", "baz" }), Arrays.asList(new String[] { "foo", "bar", "baz" })));
return result;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.
the class ReassignmentValueValidatorTest method test5DigExpiresAtReassignmentValue.
@Test
public void test5DigExpiresAtReassignmentValue() {
ReassignmentValue value = new ReassignmentValue();
value.setDuration("11111d");
boolean result = validator.isValid(value, context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.
the class ReassignmentValueValidatorTest method testIsTooBigDurationReassignmentValue.
@Test
public void testIsTooBigDurationReassignmentValue() {
ReassignmentValue value = new ReassignmentValue();
value.setDuration("1111111111111111111111111111111111111111111d");
boolean result = validator.isValid(value, context);
assertFalse(result);
assertFalse(errorMessages.isEmpty());
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.
the class ReassignmentValueValidatorTest method testEmptyReassignmentValue.
@Test
public void testEmptyReassignmentValue() {
boolean result = validator.isValid(new ReassignmentValue(), context);
assertTrue(result);
assertTrue(errorMessages.isEmpty());
}
Aggregations