@Test @SuppressWarnings("unchecked") public void testDeleteEndNode() { this.tested = new SafeDeleteNodeCommand(graphHolder.endNode); final CommandResult<RuleViolation> result = tested.allow(graphTestHandler.graphCommandExecutionContext); final List<Command<GraphCommandExecutionContext, RuleViolation>> commands = tested.getCommands(); assertNotNull(commands); assertTrue(3 == commands.size()); final DeleteConnectorCommand delete2 = (DeleteConnectorCommand) commands.get(0); assertNotNull(delete2); assertEquals(graphHolder.edge2, delete2.getEdge()); final RemoveChildrenCommand removeChild = (RemoveChildrenCommand) commands.get(1); assertNotNull(removeChild); assertEquals(graphHolder.parentNode, removeChild.getParent()); assertEquals(graphHolder.endNode, removeChild.getCandidates().iterator().next()); final DeregisterNodeCommand deleteNode = (DeregisterNodeCommand) commands.get(2); assertNotNull(deleteNode); assertEquals(graphHolder.endNode, deleteNode.getNode()); assertEquals(CommandResult.Type.INFO, result.getType()); }
public Node<?, Edge> getNode() { return node; }
SafeDeleteNodeCommand extends AbstractGraphCompositeCommand { public Node<?, Edge> getNode() { return node; } }
SafeDeleteNodeCommand extends AbstractGraphCompositeCommand { public Node<?, Edge> getNode() { return node; } SafeDeleteNodeCommand(final @MapsTo("candidateUUID") String candidateUUID,
                                 final @MapsTo("options") Options options);  SafeDeleteNodeCommand(final Node<?, Edge> node);  SafeDeleteNodeCommand(final Node<?, Edge> node,
                                 final Options options);  SafeDeleteNodeCommand(final Node<?, Edge> node,
                                 final SafeDeleteNodeCommandCallback safeDeleteCallback,
                                 final Options options); }
SafeDeleteNodeCommand extends AbstractGraphCompositeCommand { public Node<?, Edge> getNode() { return node; } SafeDeleteNodeCommand(final @MapsTo("candidateUUID") String candidateUUID,
                                 final @MapsTo("options") Options options);  SafeDeleteNodeCommand(final Node<?, Edge> node);  SafeDeleteNodeCommand(final Node<?, Edge> node,
                                 final Options options);  SafeDeleteNodeCommand(final Node<?, Edge> node,
                                 final SafeDeleteNodeCommandCallback safeDeleteCallback,
                                 final Options options); Optional<SafeDeleteNodeCommandCallback> getSafeDeleteCallback(); boolean shouldKeepChildren(final Node<Definition<?>, Edge> candidate); GraphsProvider getGraphsProvider(); Node<?, Edge> getNode(); Options getOptions(); @Override String toString(); }
SafeDeleteNodeCommand extends AbstractGraphCompositeCommand { public Node<?, Edge> getNode() { return node; } SafeDeleteNodeCommand(final @MapsTo("candidateUUID") String candidateUUID,
                                 final @MapsTo("options") Options options);  SafeDeleteNodeCommand(final Node<?, Edge> node);  SafeDeleteNodeCommand(final Node<?, Edge> node,
                                 final Options options);  SafeDeleteNodeCommand(final Node<?, Edge> node,
                                 final SafeDeleteNodeCommandCallback safeDeleteCallback,
                                 final Options options); Optional<SafeDeleteNodeCommandCallback> getSafeDeleteCallback(); boolean shouldKeepChildren(final Node<Definition<?>, Edge> candidate); GraphsProvider getGraphsProvider(); Node<?, Edge> getNode(); Options getOptions(); @Override String toString();  }