use of org.kie.workbench.common.stunner.bpmn.definition.SequenceFlow in project kie-wb-common by kiegroup.
the class SequenceFlowPriorityTest method testSequenceFlowPriorityValid.
@Test
public void testSequenceFlowPriorityValid() {
for (String test : PRIORITY_VALID) {
SequenceFlow sequenceFlow = new SequenceFlow.SequenceFlowBuilder().build();
sequenceFlow.getExecutionSet().setPriority(new Priority(test));
Set<ConstraintViolation<SequenceFlow>> violations = this.validator.validate(sequenceFlow);
assertTrue(violations.isEmpty());
}
}
use of org.kie.workbench.common.stunner.bpmn.definition.SequenceFlow in project kie-wb-common by kiegroup.
the class SequenceFlowPriorityTest method testSequenceFlowPriorityInvalid.
@Test
public void testSequenceFlowPriorityInvalid() {
for (String test : PRIORITY_INVALID) {
SequenceFlow sequenceFlow = new SequenceFlow.SequenceFlowBuilder().build();
sequenceFlow.getExecutionSet().setPriority(new Priority(test));
Set<ConstraintViolation<SequenceFlow>> violations = this.validator.validate(sequenceFlow);
assertEquals(1, violations.size());
}
}
Aggregations