]> source.dussan.org Git - archiva.git/commitdiff
my bad fix compilation
authorOlivier Lamy <olamy@apache.org>
Thu, 10 Apr 2014 04:36:30 +0000 (14:36 +1000)
committerOlivier Lamy <olamy@apache.org>
Thu, 10 Apr 2014 04:36:30 +0000 (14:36 +1000)
archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java
archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/MetadataTransferTest.java

index 98c17a9b572552e4c40a8c2ca056335249d584e4..e3f39d2ecaa75cee855b2305a8dfeeb515dcdbc9 100644 (file)
@@ -144,9 +144,9 @@ public abstract class AbstractProxyTestCase
         config =
             (MockConfiguration) applicationContext.getBean( "archivaConfiguration#mock", ArchivaConfiguration.class );
 
-        config.getConfiguration().setManagedRepositories( new ArrayList<>() );
-        config.getConfiguration().setRemoteRepositories( new ArrayList<>() );
-        config.getConfiguration().setProxyConnectors( new ArrayList<>() );
+        config.getConfiguration().setManagedRepositories( new ArrayList<ManagedRepositoryConfiguration>() );
+        config.getConfiguration().setRemoteRepositories( new ArrayList<RemoteRepositoryConfiguration>() );
+        config.getConfiguration().setProxyConnectors( new ArrayList<ProxyConnectorConfiguration>() );
 
         // Setup source repository (using default layout)
         String name = getClass().getSimpleName();
index 24624b20fbc54f8c6869eb3f9fd0cb9ab076a912..ed7f04b48325c31753728ed709e63e8e493f542c 100644 (file)
@@ -186,7 +186,7 @@ public class MetadataTransferTest
         String requestedResource = "org/apache/maven/test/get-default-metadata-nonexistant/maven-metadata.xml";
         setupTestableManagedRepository( requestedResource );
 
-        config.getConfiguration().setProxyConnectors( new ArrayList<>( ) );
+        config.getConfiguration().setProxyConnectors( new ArrayList<ProxyConnectorConfiguration>( ) );
 
         assertResourceNotFound( requestedResource );
 
@@ -206,7 +206,7 @@ public class MetadataTransferTest
         String requestedResource = "org/apache/maven/test/get-project-metadata/maven-metadata.xml";
         setupTestableManagedRepository( requestedResource );
 
-        config.getConfiguration().setProxyConnectors( new ArrayList<>( ) );
+        config.getConfiguration().setProxyConnectors( new ArrayList<ProxyConnectorConfiguration>( ) );
 
         assertResourceExists( requestedResource );
 
@@ -333,7 +333,7 @@ public class MetadataTransferTest
         setupTestableManagedRepository( requestedResource );
 
 
-        config.getConfiguration().setProxyConnectors( new ArrayList<>( ) );
+        config.getConfiguration().setProxyConnectors( new ArrayList<ProxyConnectorConfiguration>( ) );
         // Configure Connector (usually done within archiva.xml configuration)
         saveConnector( ID_DEFAULT_MANAGED, ID_PROXIED1, ChecksumPolicy.FIX, ReleasesPolicy.ALWAYS,
                        SnapshotsPolicy.ALWAYS, CachedFailuresPolicy.NO, false );