@Test public void testVisitNode() throws Exception { final String path = "/correct/path"; ItemVisitor visitor = new FacadeTestingItemVisitor(path); ItemWrappingVisitor<Session> facade = getFacade(visitor); Node delegate = mock(Node.class); when(delegate.getPath()).thenReturn(path); facade.visit(delegate); }
@Override public void visit(Property property) throws RepositoryException { delegate.visit(new PropertyFacade<>(property, session)); }
ItemWrappingVisitor implements ItemVisitor { @Override public void visit(Property property) throws RepositoryException { delegate.visit(new PropertyFacade<>(property, session)); } }
ItemWrappingVisitor implements ItemVisitor { @Override public void visit(Property property) throws RepositoryException { delegate.visit(new PropertyFacade<>(property, session)); } @SuppressWarnings("WeakerAccess")  ItemWrappingVisitor(final @NotNull ItemVisitor delegate,
                               final @NotNull SessionFacade<S> session); }
ItemWrappingVisitor implements ItemVisitor { @Override public void visit(Property property) throws RepositoryException { delegate.visit(new PropertyFacade<>(property, session)); } @SuppressWarnings("WeakerAccess")  ItemWrappingVisitor(final @NotNull ItemVisitor delegate,
                               final @NotNull SessionFacade<S> session); @Override void visit(Property property); @Override void visit(Node node); }
ItemWrappingVisitor implements ItemVisitor { @Override public void visit(Property property) throws RepositoryException { delegate.visit(new PropertyFacade<>(property, session)); } @SuppressWarnings("WeakerAccess")  ItemWrappingVisitor(final @NotNull ItemVisitor delegate,
                               final @NotNull SessionFacade<S> session); @Override void visit(Property property); @Override void visit(Node node);  }