Search in sources :

Example 1 with DiagramElement

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();
}
Also used : DiagramElement(org.camunda.bpm.model.bpmn.instance.di.DiagramElement) Test(org.junit.Test)

Aggregations

DiagramElement (org.camunda.bpm.model.bpmn.instance.di.DiagramElement)1 Test (org.junit.Test)1