@Test public void parentOfNodeShouldBeParentNode() throws Exception { assertThat(savedNode.getParent(), is(rootNode)); assertThat(newNode.getParent(), is(rootNode)); assertThat(nodeWithModifiedProperty.getParent(), is(rootNode)); assertThat(nodeWithModifiedChildren.getParent(), is(rootNode)); assertThat(nodeOfDepth2.getParent(), is(nodeWithModifiedChildren)); }
@Override public abstract AbstractJcrNode getParent() throws ItemNotFoundException, RepositoryException;
AbstractJcrItem implements Item, Namespaced { @Override public abstract AbstractJcrNode getParent() throws ItemNotFoundException, RepositoryException; }
AbstractJcrItem implements Item, Namespaced { @Override public abstract AbstractJcrNode getParent() throws ItemNotFoundException, RepositoryException; protected  AbstractJcrItem( JcrSession session ); }
AbstractJcrItem implements Item, Namespaced { @Override public abstract AbstractJcrNode getParent() throws ItemNotFoundException, RepositoryException; protected  AbstractJcrItem( JcrSession session ); @Override Item getAncestor( int depth ); @Override int getDepth(); @Override abstract AbstractJcrNode getParent(); }
AbstractJcrItem implements Item, Namespaced { @Override public abstract AbstractJcrNode getParent() throws ItemNotFoundException, RepositoryException; protected  AbstractJcrItem( JcrSession session ); @Override Item getAncestor( int depth ); @Override int getDepth(); @Override abstract AbstractJcrNode getParent();  }