use of org.kie.workbench.common.stunner.core.TestingGraphInstanceBuilder2.NODES.LEVEL1_NODE1 in project kie-wb-common by kiegroup.
the class ProcessCompensationRefProviderTest method testGetSelectorDataLevel2SixTasks.
@Test
public void testGetSelectorDataLevel2SixTasks() {
TestingGraphInstanceBuilder2.Level2Graph graph = buildLevel2Graph(graphTestHandler, new TestingGraphInstanceBuilder2.Level2Graph(), new StartNoneEvent(), mockTask(LEVEL0_NODE1.nodeName()), mockTask(LEVEL0_NODE2.nodeName()), new EndNoneEvent(), mockSubProcess(LEVEL1_SUB_PROCESS1.nodeName()), mockTask(LEVEL1_NODE1.nodeName()), mockTask(LEVEL1_NODE2.nodeName()), mockSubProcess(LEVEL2_SUB_PROCESS1.nodeName()), mockTask(LEVEL2_NODE1.nodeName()), mockTask(LEVEL2_NODE2.nodeName()));
testGetSelectorData(graph.level2Node1, expectedNodes(LEVEL2_SUB_PROCESS1, LEVEL1_NODE1, LEVEL1_NODE2, LEVEL2_NODE1, LEVEL2_NODE2));
}
use of org.kie.workbench.common.stunner.core.TestingGraphInstanceBuilder2.NODES.LEVEL1_NODE1 in project kie-wb-common by kiegroup.
the class ProcessCompensationRefProviderTest method testGetSelectorDataLevel2SixTasksButNodeInLevel1IsSelected.
@Test
public void testGetSelectorDataLevel2SixTasksButNodeInLevel1IsSelected() {
TestingGraphInstanceBuilder2.Level2Graph graph = buildLevel2Graph(graphTestHandler, new TestingGraphInstanceBuilder2.Level2Graph(), new StartNoneEvent(), mockTask(LEVEL0_NODE1.nodeName()), mockTask(LEVEL0_NODE2.nodeName()), new EndNoneEvent(), mockSubProcess(LEVEL1_SUB_PROCESS1.nodeName()), mockTask(LEVEL1_NODE1.nodeName()), mockTask(LEVEL1_NODE2.nodeName()), mockSubProcess(LEVEL2_SUB_PROCESS1.nodeName()), mockTask(LEVEL2_NODE1.nodeName()), mockTask(LEVEL2_NODE2.nodeName()));
testGetSelectorData(graph.level1Node1, expectedNodes(LEVEL0_NODE1, LEVEL0_NODE2, LEVEL1_SUB_PROCESS1, LEVEL1_NODE1, LEVEL1_NODE2, LEVEL2_SUB_PROCESS1));
}
use of org.kie.workbench.common.stunner.core.TestingGraphInstanceBuilder2.NODES.LEVEL1_NODE1 in project kie-wb-common by kiegroup.
the class ProcessCompensationRefProviderTest method testGetSelectorDataLevel2SixTasksWithLanesNodeInLevel1Selected.
@Test
public void testGetSelectorDataLevel2SixTasksWithLanesNodeInLevel1Selected() {
TestingGraphInstanceBuilder2.Level2Graph graph = buildLevel2Graph(graphTestHandler, new TestingGraphInstanceBuilder2.Level2Graph(), new StartNoneEvent(), mockTask(LEVEL0_NODE1.nodeName()), mockTask(LEVEL0_NODE2.nodeName()), new EndNoneEvent(), mockLane(LEVEL1_SUB_PROCESS1.nodeName()), mockTask(LEVEL1_NODE1.nodeName()), mockTask(LEVEL1_NODE2.nodeName()), mockLane(LEVEL2_SUB_PROCESS1.nodeName()), mockTask(LEVEL2_NODE1.nodeName()), mockTask(LEVEL2_NODE2.nodeName()));
testGetSelectorData(graph.level1Node1, expectedNodes(LEVEL0_NODE1, LEVEL0_NODE2, LEVEL1_NODE1, LEVEL1_NODE2, LEVEL2_NODE1, LEVEL2_NODE2));
}
use of org.kie.workbench.common.stunner.core.TestingGraphInstanceBuilder2.NODES.LEVEL1_NODE1 in project kie-wb-common by kiegroup.
the class ProcessCompensationRefProviderTest method testGetSelectorDataLevel2SixTasksWithLanesNodeInLevel0Selected.
@Test
public void testGetSelectorDataLevel2SixTasksWithLanesNodeInLevel0Selected() {
TestingGraphInstanceBuilder2.Level2Graph graph = buildLevel2Graph(graphTestHandler, new TestingGraphInstanceBuilder2.Level2Graph(), new StartNoneEvent(), mockTask(LEVEL0_NODE1.nodeName()), mockTask(LEVEL0_NODE2.nodeName()), new EndNoneEvent(), mockLane(LEVEL1_SUB_PROCESS1.nodeName()), mockTask(LEVEL1_NODE1.nodeName()), mockTask(LEVEL1_NODE2.nodeName()), mockLane(LEVEL2_SUB_PROCESS1.nodeName()), mockTask(LEVEL2_NODE1.nodeName()), mockTask(LEVEL2_NODE2.nodeName()));
testGetSelectorData(graph.level0Node1, expectedNodes(LEVEL0_NODE1, LEVEL0_NODE2, LEVEL1_NODE1, LEVEL1_NODE2, LEVEL2_NODE1, LEVEL2_NODE2));
}
Aggregations