Search in sources :

Example 1 with BPMNBaseInfo

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;
}
Also used : BPMNBaseInfo(org.kie.workbench.common.stunner.bpmn.definition.BPMNBaseInfo) BpmnNode(org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.BpmnNode) Node(org.kie.workbench.common.stunner.core.graph.Node) BpmnNode(org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.BpmnNode) BPMNViewDefinition(org.kie.workbench.common.stunner.bpmn.definition.BPMNViewDefinition) View(org.kie.workbench.common.stunner.core.graph.content.view.View) Name(org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)

Aggregations

BpmnNode (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.BpmnNode)1 BPMNBaseInfo (org.kie.workbench.common.stunner.bpmn.definition.BPMNBaseInfo)1 BPMNViewDefinition (org.kie.workbench.common.stunner.bpmn.definition.BPMNViewDefinition)1 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)1 Node (org.kie.workbench.common.stunner.core.graph.Node)1 View (org.kie.workbench.common.stunner.core.graph.content.view.View)1