use of org.camunda.bpm.model.dmn.instance.Decision in project camunda-dmn-model by camunda.
the class GenerateIdTest method shouldGenerateIdsOnCreate.
@Test
public void shouldGenerateIdsOnCreate() {
DmnModelInstance modelInstance = Dmn.createEmptyModel();
Definitions definitions = modelInstance.newInstance(Definitions.class);
assertThat(definitions.getId()).isNotNull();
Decision decision = modelInstance.newInstance(Decision.class);
assertThat(decision.getId()).isNotNull();
DecisionTable decisionTable = modelInstance.newInstance(DecisionTable.class);
assertThat(decisionTable.getId()).isNotNull();
Output output = modelInstance.newInstance(Output.class);
assertThat(output.getId()).isNotNull();
}
Aggregations