use of org.sonatype.aether.graph.DependencyNode in project sonatype-aether by sonatype.
the class DefaultDependencyCollectorTest method testCyclicDependencies.
@Test
public void testCyclicDependencies() throws Exception {
DependencyNode root = parser.parse("cycle.txt");
CollectRequest request = new CollectRequest(root.getDependency(), Arrays.asList(repository));
CollectResult result = collector.collectDependencies(session, request);
assertEqualSubtree(root, result.getRoot());
}
use of org.sonatype.aether.graph.DependencyNode in project sonatype-aether by sonatype.
the class DefaultDependencyCollectorTest method testCyclicDependenciesBig.
@Test
public void testCyclicDependenciesBig() throws Exception {
DependencyNode root = parser.parse("cycle-big.txt");
CollectRequest request = new CollectRequest(root.getDependency(), Arrays.asList(repository));
collector.setArtifactDescriptorReader(new IniArtifactDescriptorReader("artifact-descriptions/cycle-big/"));
CollectResult result = collector.collectDependencies(session, request);
assertNotNull(result.getRoot());
// we only care about the performance here, this test must not hang or run out of mem
}
use of org.sonatype.aether.graph.DependencyNode in project sonatype-aether by sonatype.
the class ConflictIdSorterTest method testCycle.
@Test
public void testCycle() throws Exception {
DependencyNode node = parser.parse("cycle.txt");
transform(node);
expectOrder("gid:aid::ext", "gid2:aid::ext");
expectCycle(true);
}
use of org.sonatype.aether.graph.DependencyNode in project sonatype-aether by sonatype.
the class ConflictIdSorterTest method testNoConflicts.
@Test
public void testNoConflicts() throws Exception {
DependencyNode node = parser.parse("no-conflicts.txt");
transform(node);
expectOrder("gid:aid::ext", "gid3:aid::ext", "gid2:aid::ext", "gid4:aid::ext");
expectCycle(false);
}
use of org.sonatype.aether.graph.DependencyNode in project sonatype-aether by sonatype.
the class ConflictIdSorterTest method testSimple.
@Test
public void testSimple() throws Exception {
DependencyNode node = parser.parse("simple.txt");
transform(node);
expectOrder("gid2:aid::ext", "gid:aid::ext", "gid:aid2::ext");
expectCycle(false);
}
Aggregations