@Test(expected = IllegalArgumentException.class) public void removeNode_NullNode() { navigation.removeNode(null); }
@Override public boolean removeNode(NodePath path) { Parameters.requireNonNull(path, "path"); Node parent = getNode(path.parent(), Nodes.visitChildren()); if (parent == null || !parent.removeChild(path.getLastSegment())) { return false; } saveNode(parent); return true; }
NavigationImpl implements Navigation { @Override public boolean removeNode(NodePath path) { Parameters.requireNonNull(path, "path"); Node parent = getNode(path.parent(), Nodes.visitChildren()); if (parent == null || !parent.removeChild(path.getLastSegment())) { return false; } saveNode(parent); return true; } }
NavigationImpl implements Navigation { @Override public boolean removeNode(NodePath path) { Parameters.requireNonNull(path, "path"); Node parent = getNode(path.parent(), Nodes.visitChildren()); if (parent == null || !parent.removeChild(path.getLastSegment())) { return false; } saveNode(parent); return true; } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); }
NavigationImpl implements Navigation { @Override public boolean removeNode(NodePath path) { Parameters.requireNonNull(path, "path"); Node parent = getNode(path.parent(), Nodes.visitChildren()); if (parent == null || !parent.removeChild(path.getLastSegment())) { return false; } saveNode(parent); return true; } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); @Override boolean removeNode(NodePath path); @Override Node getNode(String... nodePath); @Override Node getNode(NodePath nodePath); @Override Node getNode(NodePath nodePath, NodeVisitor visitor); @Override int getPriority(); @Override SiteId getSiteId(); @Override Node getRootNode(NodeVisitor visitor); @Override void refreshNode(Node node); @Override void refreshNode(Node node, NodeVisitor visitor); @Override void saveNode(Node node); @Override void setPriority(int priority); }
NavigationImpl implements Navigation { @Override public boolean removeNode(NodePath path) { Parameters.requireNonNull(path, "path"); Node parent = getNode(path.parent(), Nodes.visitChildren()); if (parent == null || !parent.removeChild(path.getLastSegment())) { return false; } saveNode(parent); return true; } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); @Override boolean removeNode(NodePath path); @Override Node getNode(String... nodePath); @Override Node getNode(NodePath nodePath); @Override Node getNode(NodePath nodePath, NodeVisitor visitor); @Override int getPriority(); @Override SiteId getSiteId(); @Override Node getRootNode(NodeVisitor visitor); @Override void refreshNode(Node node); @Override void refreshNode(Node node, NodeVisitor visitor); @Override void saveNode(Node node); @Override void setPriority(int priority);  }