use of org.camunda.bpm.model.cmmn.instance.PlanItem in project camunda-cmmn-model by camunda.
the class Cmmn10Test method shouldGetPlanItemEntryCriterion.
@Test
public void shouldGetPlanItemEntryCriterion() {
CmmnModelInstance modelInstance = getCmmnModelInstance();
PlanItem planItem = modelInstance.getModelElementsByType(PlanItem.class).iterator().next();
Collection<Sentry> entryCriterias = planItem.getEntryCriterias();
assertThat(entryCriterias).hasSize(1);
Collection<Sentry> entryCriteria = planItem.getEntryCriteria();
assertThat(entryCriteria).hasSize(1);
Collection<EntryCriterion> entryCriterions = planItem.getEntryCriterions();
assertThat(entryCriterions).isEmpty();
}
Aggregations