o little conversion of a repository as a smoke test, relying on the good coverage else where :-)

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@414665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2006-06-15 20:00:33 +00:00
parent e7a794ad0d
commit 565f3f2844
2 changed files with 9 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class DefaultRepositoryManager
legacyLayout, null, null );
repository = artifactRepositoryFactory.createArtifactRepository( "default",
legacyRepositoryDirectory.toURL().toString(),
repositoryDirectory.toURL().toString(),
defaultLayout, null, null );
}
catch ( MalformedURLException e )

View File

@ -2,6 +2,8 @@ package org.apache.maven.repository;
import org.codehaus.plexus.PlexusTestCase;
import java.io.File;
/**
* @author Jason van Zyl
*/
@ -11,6 +13,12 @@ public class RepositoryManagerTest
public void testLegacyRepositoryConversion()
throws Exception
{
File legacyRepositoryDirectory = getTestFile( "src/test/maven-1.x-repository" );
File repositoryDirectory = getTestFile( "target/maven-2.x-repository" );
RepositoryManager rm = (RepositoryManager) lookup( RepositoryManager.ROLE );
rm.convertLegacyRepository( legacyRepositoryDirectory, repositoryDirectory, true );
}
}