]> source.dussan.org Git - archiva.git/commitdiff
PR: MRM-59
authorEdwin L. Punzalan <epunzalan@apache.org>
Sat, 25 Feb 2006 00:41:42 +0000 (00:41 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Sat, 25 Feb 2006 00:41:42 +0000 (00:41 +0000)
Revised the unit test to use its own repository cache using the appropriate repository.  Btw, this shows that the cache layout reflect the proxy configuration layout.  This is needed so that checksums on 1.x repositories are located in the same directory as the checksumed file.

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@380875 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/LegacyProxyManagerTest.java

index ae9caf7707a9fb8f8ba56dafc9222f78f6c7498b..67e5b32b3216446892bd841c0d74e6f52333a87e 100644 (file)
@@ -40,7 +40,7 @@ public class LegacyProxyManagerTest
         super.setUp();
 
         ProxyManagerFactory factory = (ProxyManagerFactory) container.lookup( ProxyManagerFactory.ROLE );
-        proxy = factory.getProxyManager( "default", getTestConfiguration() );
+        proxy = factory.getProxyManager( "legacy", getTestConfiguration() );
     }
 
     public void testExceptions()
@@ -135,7 +135,7 @@ public class LegacyProxyManagerTest
     {
         ProxyConfiguration config = (ProxyConfiguration) container.lookup( ProxyConfiguration.ROLE );
 
-        config.setRepositoryCachePath( "target/proxy-cache" );
+        config.setRepositoryCachePath( "target/m1-proxy-cache" );
 
         ArtifactRepositoryLayout layout = new LegacyRepositoryLayout();