use of org.camunda.bpm.model.dmn.instance.Definitions in project camunda-dmn-model by camunda.
the class DmnModelInstanceTest method testClone.
@Test
public void testClone() throws Exception {
DmnModelInstance modelInstance = Dmn.createEmptyModel();
Definitions definitions = modelInstance.newInstance(Definitions.class);
definitions.setId("TestId");
modelInstance.setDefinitions(definitions);
DmnModelInstance cloneInstance = modelInstance.clone();
cloneInstance.getDefinitions().setId("TestId2");
assertThat(modelInstance.getDefinitions().getId(), is(equalTo("TestId")));
assertThat(cloneInstance.getDefinitions().getId(), is(equalTo("TestId2")));
}
Aggregations