@Test @SuppressWarnings("unchecked") public void testCreateSafeDeleteNodeCommand() { final CaseManagementSafeDeleteNodeCommand command = tested.createSafeDeleteNodeCommand(node, SafeDeleteNodeCommand.Options.defaults(), new DeleteElementsCommand.DeleteCallback() { }); assertEquals(node, command.getNode()); }
@Override protected CaseManagementSafeDeleteNodeCommand createSafeDeleteNodeCommand(final Node<?, Edge> node, final SafeDeleteNodeCommand.Options options, final DeleteCallback callback) { return new CaseManagementSafeDeleteNodeCommand(node, callback.onDeleteNode(node, options), options); }
CaseManagementDeleteElementsCommand extends DeleteElementsCommand { @Override protected CaseManagementSafeDeleteNodeCommand createSafeDeleteNodeCommand(final Node<?, Edge> node, final SafeDeleteNodeCommand.Options options, final DeleteCallback callback) { return new CaseManagementSafeDeleteNodeCommand(node, callback.onDeleteNode(node, options), options); } }
CaseManagementDeleteElementsCommand extends DeleteElementsCommand { @Override protected CaseManagementSafeDeleteNodeCommand createSafeDeleteNodeCommand(final Node<?, Edge> node, final SafeDeleteNodeCommand.Options options, final DeleteCallback callback) { return new CaseManagementSafeDeleteNodeCommand(node, callback.onDeleteNode(node, options), options); } CaseManagementDeleteElementsCommand(@MapsTo("uuids") Collection<String> uuids);  CaseManagementDeleteElementsCommand(Supplier<Collection<Element>> elements);  CaseManagementDeleteElementsCommand(Supplier<Collection<Element>> elements,
                                               DeleteCallback callback); }
CaseManagementDeleteElementsCommand extends DeleteElementsCommand { @Override protected CaseManagementSafeDeleteNodeCommand createSafeDeleteNodeCommand(final Node<?, Edge> node, final SafeDeleteNodeCommand.Options options, final DeleteCallback callback) { return new CaseManagementSafeDeleteNodeCommand(node, callback.onDeleteNode(node, options), options); } CaseManagementDeleteElementsCommand(@MapsTo("uuids") Collection<String> uuids);  CaseManagementDeleteElementsCommand(Supplier<Collection<Element>> elements);  CaseManagementDeleteElementsCommand(Supplier<Collection<Element>> elements,
                                               DeleteCallback callback);  }
CaseManagementDeleteElementsCommand extends DeleteElementsCommand { @Override protected CaseManagementSafeDeleteNodeCommand createSafeDeleteNodeCommand(final Node<?, Edge> node, final SafeDeleteNodeCommand.Options options, final DeleteCallback callback) { return new CaseManagementSafeDeleteNodeCommand(node, callback.onDeleteNode(node, options), options); } CaseManagementDeleteElementsCommand(@MapsTo("uuids") Collection<String> uuids);  CaseManagementDeleteElementsCommand(Supplier<Collection<Element>> elements);  CaseManagementDeleteElementsCommand(Supplier<Collection<Element>> elements,
                                               DeleteCallback callback);   }