@Test public void testSetDetectedOsSystemProperties_netty4Dependency() { Artifact nettyArtifact = new DefaultArtifact("io.netty:netty-all:4.1.31.Final"); DependencyGraph dependencyGraph = dependencyGraphBuilder.buildMavenDependencyGraph(new Dependency(nettyArtifact, "")); Truth.assertThat(dependencyGraph.getUnresolvedArtifacts()).isEmpty(); Truth.assertThat(dependencyGraph.list()).isNotEmpty(); }
public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } DependencyGraphBuilder();  DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls); }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } DependencyGraphBuilder();  DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls); DependencyGraph buildFullDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(Artifact artifact); DependencyGraph buildMavenDependencyGraph(Dependency dependency); }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } DependencyGraphBuilder();  DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls); DependencyGraph buildFullDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(Artifact artifact); DependencyGraph buildMavenDependencyGraph(Dependency dependency);  }