@Test public void testGetPaths_multiple() { Set<DependencyPath> paths = graph.getPaths("com.google:baz:1"); Truth.assertThat(paths).containsExactly(path3, path5); }
public Set<DependencyPath> getPaths(String coordinates) { return paths.get(coordinates); }
DependencyGraph { public Set<DependencyPath> getPaths(String coordinates) { return paths.get(coordinates); } }
DependencyGraph { public Set<DependencyPath> getPaths(String coordinates) { return paths.get(coordinates); } DependencyGraph(DependencyNode root); }
DependencyGraph { public Set<DependencyPath> getPaths(String coordinates) { return paths.get(coordinates); } DependencyGraph(DependencyNode root); void addPath(DependencyPath path); List<DependencyPath> list(); DependencyPath getRootPath(); List<DependencyPath> getChildren(DependencyPath parent); Set<DependencyPath> getPaths(String coordinates); List<Update> findUpdates(); Map<String, String> getHighestVersionMap(); Set<UnresolvableArtifactProblem> getUnresolvedArtifacts(); UnresolvableArtifactProblem createUnresolvableArtifactProblem(Artifact artifact); static DependencyGraph from(DependencyNode root); }
DependencyGraph { public Set<DependencyPath> getPaths(String coordinates) { return paths.get(coordinates); } DependencyGraph(DependencyNode root); void addPath(DependencyPath path); List<DependencyPath> list(); DependencyPath getRootPath(); List<DependencyPath> getChildren(DependencyPath parent); Set<DependencyPath> getPaths(String coordinates); List<Update> findUpdates(); Map<String, String> getHighestVersionMap(); Set<UnresolvableArtifactProblem> getUnresolvedArtifacts(); UnresolvableArtifactProblem createUnresolvableArtifactProblem(Artifact artifact); static DependencyGraph from(DependencyNode root);  }