From a92c8cf8d9881df07b2754daccd6d0501b7695a7 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 15 Oct 2012 13:17:45 +0000 Subject: [PATCH] fix unit test git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1398279 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/webdav/ArchivaDavResourceFactory.java | 10 ++++++++++ .../archiva/webdav/ArchivaDavResourceFactoryTest.java | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java index a7c9bc0b8..f525b3e3c 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java @@ -1356,4 +1356,14 @@ public class ArchivaDavResourceFactory { this.connectors = connectors; } + + public RemoteRepositoryAdmin getRemoteRepositoryAdmin() + { + return remoteRepositoryAdmin; + } + + public void setRemoteRepositoryAdmin( RemoteRepositoryAdmin remoteRepositoryAdmin ) + { + this.remoteRepositoryAdmin = remoteRepositoryAdmin; + } } diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java index 68b9b581f..049bfab47 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java @@ -23,6 +23,7 @@ import junit.framework.TestCase; import org.apache.archiva.admin.model.RepositoryAdminException; import org.apache.archiva.admin.model.beans.ManagedRepository; import org.apache.archiva.admin.model.beans.RepositoryGroup; +import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin; import org.apache.archiva.admin.repository.DefaultRepositoryCommonValidator; import org.apache.archiva.admin.repository.group.DefaultRepositoryGroupAdmin; import org.apache.archiva.admin.repository.managed.DefaultManagedRepositoryAdmin; @@ -109,6 +110,10 @@ public class ArchivaDavResourceFactoryTest @Inject DefaultManagedRepositoryAdmin defaultManagedRepositoryAdmin; + @Inject + RemoteRepositoryAdmin remoteRepositoryAdmin; + + @Inject DefaultRepositoryGroupAdmin defaultRepositoryGroupAdmin; @@ -174,6 +179,7 @@ public class ArchivaDavResourceFactoryTest resourceFactory.setRepositoryFactory( repoFactory ); resourceFactory.setRepositoryRequest( repoRequest ); resourceFactory.setConnectors( new OverridingRepositoryProxyConnectors() ); + resourceFactory.setRemoteRepositoryAdmin( remoteRepositoryAdmin ); } private ManagedRepository createManagedRepository( String id, String location, String layout )