@Test public void testGetSelectedNodeWhenSelected() { Node node = mock(Node.class); when(graph.getNode(ITEM_UUID)).thenReturn(node); assertEquals(node, ClientUtils.getSelectedNode(diagram, viewerSession)); assertEquals(node, ClientUtils.getSelectedNode(diagram, editorSession)); }
public static Node getSelectedNode(Diagram diagram, ClientSession clientSession) { String uuid = getSelectedElementUUID(clientSession); return uuid != null ? diagram.getGraph().getNode(uuid) : null; }
ClientUtils { public static Node getSelectedNode(Diagram diagram, ClientSession clientSession) { String uuid = getSelectedElementUUID(clientSession); return uuid != null ? diagram.getGraph().getNode(uuid) : null; } }
ClientUtils { public static Node getSelectedNode(Diagram diagram, ClientSession clientSession) { String uuid = getSelectedElementUUID(clientSession); return uuid != null ? diagram.getGraph().getNode(uuid) : null; }  }
ClientUtils { public static Node getSelectedNode(Diagram diagram, ClientSession clientSession) { String uuid = getSelectedElementUUID(clientSession); return uuid != null ? diagram.getGraph().getNode(uuid) : null; }  static String getSelectedElementUUID(ClientSession clientSession); static Node getSelectedNode(Diagram diagram, ClientSession clientSession); }
ClientUtils { public static Node getSelectedNode(Diagram diagram, ClientSession clientSession) { String uuid = getSelectedElementUUID(clientSession); return uuid != null ? diagram.getGraph().getNode(uuid) : null; }  static String getSelectedElementUUID(ClientSession clientSession); static Node getSelectedNode(Diagram diagram, ClientSession clientSession);  }