use of org.kie.workbench.common.stunner.bpmn.definition.BPMNBaseInfo in project kie-wb-common by kiegroup.
the class BPMNElementDecoratorsTest method mockBpmnNode.
private BpmnNode mockBpmnNode() {
BpmnNode element = mock(BpmnNode.class);
Node node = mock(Node.class);
when(element.value()).thenReturn(node);
View content = mock(View.class);
when(node.getContent()).thenReturn(content);
BPMNViewDefinition viewDefinition = mock(BPMNViewDefinition.class);
when(content.getDefinition()).thenReturn(viewDefinition);
BPMNBaseInfo general = mock(BPMNBaseInfo.class);
when(viewDefinition.getGeneral()).thenReturn(general);
Name name = mock(Name.class);
when(general.getName()).thenReturn(name);
when(name.getValue()).thenReturn(NAME);
return element;
}
Aggregations