use of org.apache.maven.scm.provider.ScmProviderRepository in project maven-scm by apache.
the class LocalRepositoryTest method testExistingRepository.
public void testExistingRepository() throws Exception {
ScmRepository repository = getScmManager().makeScmRepository("scm:local:src/test/repository:test-repo");
assertNotNull(repository);
assertEquals("local", repository.getProvider());
// assertEquals( "src/test/repositories:test-repo", repository.getScmSpecificUrl() );
ScmProviderRepository providerRepository = repository.getProviderRepository();
assertNotNull(providerRepository);
assertTrue(providerRepository instanceof LocalScmProviderRepository);
LocalScmProviderRepository local = (LocalScmProviderRepository) providerRepository;
assertEquals(getTestFile("src/test/repository").getAbsolutePath(), local.getRoot());
assertEquals("test-repo", local.getModule());
}
Aggregations