@Test public void getChildrenTest() throws ValidationException { assertThat("List of artifact coordinates is not the expected", nodeSpy.getChildren(filterMock), equalTo(newHashSet(dependenciesMock.values()))); }
public Set<ProjectDependencyNode> getChildren(DependenciesFilter filter) throws ValidationException { Set<ProjectDependencyNode> children = newHashSet(); for (ArtifactCoordinates dependency : getDependencies(filter)) { if (!isRange(dependency.getVersion())) { children.add(buildNode(dependency)); } } return children; }
ProjectDependencyNode { public Set<ProjectDependencyNode> getChildren(DependenciesFilter filter) throws ValidationException { Set<ProjectDependencyNode> children = newHashSet(); for (ArtifactCoordinates dependency : getDependencies(filter)) { if (!isRange(dependency.getVersion())) { children.add(buildNode(dependency)); } } return children; } }
ProjectDependencyNode { public Set<ProjectDependencyNode> getChildren(DependenciesFilter filter) throws ValidationException { Set<ProjectDependencyNode> children = newHashSet(); for (ArtifactCoordinates dependency : getDependencies(filter)) { if (!isRange(dependency.getVersion())) { children.add(buildNode(dependency)); } } return children; } ProjectDependencyNode(Project project, ProjectBuilder builder); }
ProjectDependencyNode { public Set<ProjectDependencyNode> getChildren(DependenciesFilter filter) throws ValidationException { Set<ProjectDependencyNode> children = newHashSet(); for (ArtifactCoordinates dependency : getDependencies(filter)) { if (!isRange(dependency.getVersion())) { children.add(buildNode(dependency)); } } return children; } ProjectDependencyNode(Project project, ProjectBuilder builder); void accept(DependencyNodeVisitor visitor); Project getProject(); Set<ProjectDependencyNode> getChildren(DependenciesFilter filter); Set<ArtifactCoordinates> getDependencies(DependenciesFilter filter); ProjectDependencyNode buildNode(ArtifactCoordinates dependency); }
ProjectDependencyNode { public Set<ProjectDependencyNode> getChildren(DependenciesFilter filter) throws ValidationException { Set<ProjectDependencyNode> children = newHashSet(); for (ArtifactCoordinates dependency : getDependencies(filter)) { if (!isRange(dependency.getVersion())) { children.add(buildNode(dependency)); } } return children; } ProjectDependencyNode(Project project, ProjectBuilder builder); void accept(DependencyNodeVisitor visitor); Project getProject(); Set<ProjectDependencyNode> getChildren(DependenciesFilter filter); Set<ArtifactCoordinates> getDependencies(DependenciesFilter filter); ProjectDependencyNode buildNode(ArtifactCoordinates dependency);  }