From: Olivier Lamy Date: Thu, 10 Apr 2014 04:36:30 +0000 (+1000) Subject: my bad fix compilation X-Git-Tag: archiva-2.1.0~109 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03601570ef70ec4c1ae9f2b992333b8200c016d5;p=archiva.git my bad fix compilation --- diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java index 98c17a9b5..e3f39d2ec 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java @@ -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() ); + config.getConfiguration().setRemoteRepositories( new ArrayList() ); + config.getConfiguration().setProxyConnectors( new ArrayList() ); // Setup source repository (using default layout) String name = getClass().getSimpleName(); diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/MetadataTransferTest.java b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/MetadataTransferTest.java index 24624b20f..ed7f04b48 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/MetadataTransferTest.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/MetadataTransferTest.java @@ -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( ) ); 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( ) ); assertResourceExists( requestedResource ); @@ -333,7 +333,7 @@ public class MetadataTransferTest setupTestableManagedRepository( requestedResource ); - config.getConfiguration().setProxyConnectors( new ArrayList<>( ) ); + config.getConfiguration().setProxyConnectors( new ArrayList( ) ); // Configure Connector (usually done within archiva.xml configuration) saveConnector( ID_DEFAULT_MANAGED, ID_PROXIED1, ChecksumPolicy.FIX, ReleasesPolicy.ALWAYS, SnapshotsPolicy.ALWAYS, CachedFailuresPolicy.NO, false );