use of org.sonatype.aether.impl.internal.DefaultServiceLocator in project sonatype-aether by sonatype.
the class DefaultServiceLocatorTest method testGetRepositorySystem.
@Test
public void testGetRepositorySystem() {
DefaultServiceLocator locator = new DefaultServiceLocator();
locator.addService(ArtifactDescriptorReader.class, StubArtifactDescriptorReader.class);
locator.addService(VersionResolver.class, StubVersionResolver.class);
locator.addService(VersionRangeResolver.class, StubVersionRangeResolver.class);
RepositorySystem repoSys = locator.getService(RepositorySystem.class);
assertNotNull(repoSys);
}
Aggregations