@Test public void serialization_Remove() throws Exception { createNavigationChildren(); Node parent = navigation.getNode(NodePath.path("parent"), Nodes.visitAll()); parent.removeChild("child"); assertEquals(0, parent.getChildCount()); Node parentNode = SerializationUtils.serializeDeserialize(parent); assertEquals(0, parentNode.getChildCount()); }
@Override public Node getNode(String... nodePath) { return getNode(NodePath.path(nodePath)); }
NavigationImpl implements Navigation { @Override public Node getNode(String... nodePath) { return getNode(NodePath.path(nodePath)); } }
NavigationImpl implements Navigation { @Override public Node getNode(String... nodePath) { return getNode(NodePath.path(nodePath)); } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); }
NavigationImpl implements Navigation { @Override public Node getNode(String... nodePath) { return getNode(NodePath.path(nodePath)); } 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 Node getNode(String... nodePath) { return getNode(NodePath.path(nodePath)); } 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);  }