use of org.sonatype.aether.test.util.DependencyGraphParser in project sonatype-aether by sonatype.
the class DefaultDependencyCollectorTest method setup.
@Before
public void setup() throws IOException {
session = new TestRepositorySystemSession();
collector = new DefaultDependencyCollector();
collector.setArtifactDescriptorReader(new IniArtifactDescriptorReader("artifact-descriptions/"));
collector.setVersionRangeResolver(new StubVersionRangeResolver());
collector.setRemoteRepositoryManager(new StubRemoteRepositoryManager());
parser = new DependencyGraphParser("artifact-descriptions/");
repository = new RemoteRepository("id", "default", "file:///");
}
use of org.sonatype.aether.test.util.DependencyGraphParser in project sonatype-aether by sonatype.
the class JavaEffectiveScopeCalculatorTest method setup.
@Before
public void setup() {
parser = new DependencyGraphParser("transformer/scope-calculator/");
ctx = new SimpleDependencyGraphTransformationContext();
}
use of org.sonatype.aether.test.util.DependencyGraphParser in project sonatype-aether by sonatype.
the class ConflictIdSorterTest method setup.
@Before
public void setup() {
sorter = new ConflictIdSorter();
ctx = new SimpleDependencyGraphTransformationContext();
parser = new DependencyGraphParser("transformer/conflict-id-sorter/");
}
use of org.sonatype.aether.test.util.DependencyGraphParser in project sonatype-aether by sonatype.
the class JavaDependencyContextRefinerTest method setUp.
@Before
public void setUp() {
refiner = new JavaDependencyContextRefiner();
parser = new DependencyGraphParser();
context = new SimpleDependencyGraphTransformationContext();
}
use of org.sonatype.aether.test.util.DependencyGraphParser in project sonatype-aether by sonatype.
the class NearestVersionConflictResolverTest method testCyclicGraph.
@Test
public void testCyclicGraph() throws Exception {
DependencyNode root = new DependencyGraphParser("transformer/version-resolver/").parse("cycle.txt");
root = new SimpleConflictMarker().transformGraph(root, context);
root = new NearestVersionConflictResolver().transformGraph(root, context);
assertEquals(2, root.getChildren().size());
assertEquals(1, root.getChildren().get(0).getChildren().size());
assertEquals(0, root.getChildren().get(0).getChildren().get(0).getChildren().size());
assertEquals(0, root.getChildren().get(1).getChildren().size());
}
Aggregations