use of org.camunda.bpm.model.bpmn.instance.di.DiagramElement in project camunda-bpmn-model by camunda.
the class BpmnDiTest method testBpmnPane.
@Test
public void testBpmnPane() {
DiagramElement diagramElement = collaboration.getDiagramElement();
assertThat(diagramElement).isNotNull().isInstanceOf(BpmnPlane.class);
BpmnPlane bpmnPlane = (BpmnPlane) diagramElement;
assertThat(bpmnPlane.getBpmnElement()).isEqualTo(collaboration);
assertThat(bpmnPlane.getChildElementsByType(DiagramElement.class)).isNotEmpty();
}
Aggregations