@Test public void testResolve() { Artifact grpcAuth = new DefaultArtifact("io.grpc:grpc-auth:1.15.1"); ImmutableList<ClassPathEntry> classPath = classPathBuilder.resolve(ImmutableList.of(grpcAuth), true).getClassPath(); assertThat(classPath) .comparingElementsUsing(TestHelper.COORDINATES) .containsAtLeast( "io.grpc:grpc-auth:1.15.1", "com.google.auth:google-auth-library-credentials:0.9.0"); classPath.forEach( path -> Truth.assertWithMessage("Every returned path should be an absolute path") .that(path.getJar().isAbsolute()) .isTrue()); }
public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } ClassPathBuilder();  ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder); }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } ClassPathBuilder();  ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder); ClassPathResult resolve(List<Artifact> artifacts, boolean full); }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } ClassPathBuilder();  ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder); ClassPathResult resolve(List<Artifact> artifacts, boolean full);  }