@Test public void visitTest() throws ValidationException { doNothing().when(visitor).collectDependencies(nodeMock); doNothing().when(visitor).visitChildren(nodeMock); visitor.visit(nodeMock); verify(visitor, times(1)).collectDependencies(nodeMock); verify(visitor, times(1)).visitChildren(nodeMock); }
@Override public void visit(ProjectDependencyNode node) throws ValidationException { collectDependencies(node); visitChildren(node); }
AbstractArtifactVisitor implements DependencyNodeVisitor { @Override public void visit(ProjectDependencyNode node) throws ValidationException { collectDependencies(node); visitChildren(node); } }
AbstractArtifactVisitor implements DependencyNodeVisitor { @Override public void visit(ProjectDependencyNode node) throws ValidationException { collectDependencies(node); visitChildren(node); } AbstractArtifactVisitor(String classifier, String scope, Supplier<DependencyNodeVisitor> childVisitor); protected  AbstractArtifactVisitor(); }
AbstractArtifactVisitor implements DependencyNodeVisitor { @Override public void visit(ProjectDependencyNode node) throws ValidationException { collectDependencies(node); visitChildren(node); } AbstractArtifactVisitor(String classifier, String scope, Supplier<DependencyNodeVisitor> childVisitor); protected  AbstractArtifactVisitor(); @Override void visit(ProjectDependencyNode node); abstract void collectDependencies(ProjectDependencyNode node); @Override Set<ArtifactCoordinates> getCollectedDependencies(); void setChildVisitor(Supplier<DependencyNodeVisitor> childVisitor); }
AbstractArtifactVisitor implements DependencyNodeVisitor { @Override public void visit(ProjectDependencyNode node) throws ValidationException { collectDependencies(node); visitChildren(node); } AbstractArtifactVisitor(String classifier, String scope, Supplier<DependencyNodeVisitor> childVisitor); protected  AbstractArtifactVisitor(); @Override void visit(ProjectDependencyNode node); abstract void collectDependencies(ProjectDependencyNode node); @Override Set<ArtifactCoordinates> getCollectedDependencies(); void setChildVisitor(Supplier<DependencyNodeVisitor> childVisitor);  }