maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1148034 - /maven/maven-3/trunk/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultServiceLocatorTest.java
Date Mon, 18 Jul 2011 20:08:51 GMT
Author: hboutemy
Date: Mon Jul 18 20:08:51 2011
New Revision: 1148034

URL: http://svn.apache.org/viewvc?rev=1148034&view=rev
Log:
use MavenServiceLocator instead of deprecated DefaultServiceLocator

Modified:
    maven/maven-3/trunk/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultServiceLocatorTest.java

Modified: maven/maven-3/trunk/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultServiceLocatorTest.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultServiceLocatorTest.java?rev=1148034&r1=1148033&r2=1148034&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultServiceLocatorTest.java
(original)
+++ maven/maven-3/trunk/maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultServiceLocatorTest.java
Mon Jul 18 20:08:51 2011
@@ -21,6 +21,7 @@ package org.apache.maven.repository.inte
 
 import org.sonatype.aether.RepositorySystem;
 import org.sonatype.aether.impl.MetadataGeneratorFactory;
+import org.sonatype.aether.spi.locator.ServiceLocator;
 
 import junit.framework.TestCase;
 
@@ -30,14 +31,14 @@ public class DefaultServiceLocatorTest
 
     public void testGetRepositorySystem()
     {
-        DefaultServiceLocator locator = new DefaultServiceLocator();
+        ServiceLocator locator = new MavenServiceLocator();
         RepositorySystem repoSys = locator.getService( RepositorySystem.class );
         assertNotNull( repoSys );
     }
 
     public void testGetMetadataGeneratorFactories()
     {
-        DefaultServiceLocator locator = new DefaultServiceLocator();
+        ServiceLocator locator = new MavenServiceLocator();
         assertEquals( 2, locator.getServices( MetadataGeneratorFactory.class ).size() );
     }
 



Mime
View raw message