fix unit test

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1398279 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-10-15 13:17:45 +00:00
parent d2905d78a5
commit a92c8cf8d9
2 changed files with 16 additions and 0 deletions

View File

@ -1356,4 +1356,14 @@ public class ArchivaDavResourceFactory
{ {
this.connectors = connectors; this.connectors = connectors;
} }
public RemoteRepositoryAdmin getRemoteRepositoryAdmin()
{
return remoteRepositoryAdmin;
}
public void setRemoteRepositoryAdmin( RemoteRepositoryAdmin remoteRepositoryAdmin )
{
this.remoteRepositoryAdmin = remoteRepositoryAdmin;
}
} }

View File

@ -23,6 +23,7 @@ import junit.framework.TestCase;
import org.apache.archiva.admin.model.RepositoryAdminException; import org.apache.archiva.admin.model.RepositoryAdminException;
import org.apache.archiva.admin.model.beans.ManagedRepository; import org.apache.archiva.admin.model.beans.ManagedRepository;
import org.apache.archiva.admin.model.beans.RepositoryGroup; 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.DefaultRepositoryCommonValidator;
import org.apache.archiva.admin.repository.group.DefaultRepositoryGroupAdmin; import org.apache.archiva.admin.repository.group.DefaultRepositoryGroupAdmin;
import org.apache.archiva.admin.repository.managed.DefaultManagedRepositoryAdmin; import org.apache.archiva.admin.repository.managed.DefaultManagedRepositoryAdmin;
@ -109,6 +110,10 @@ public class ArchivaDavResourceFactoryTest
@Inject @Inject
DefaultManagedRepositoryAdmin defaultManagedRepositoryAdmin; DefaultManagedRepositoryAdmin defaultManagedRepositoryAdmin;
@Inject
RemoteRepositoryAdmin remoteRepositoryAdmin;
@Inject @Inject
DefaultRepositoryGroupAdmin defaultRepositoryGroupAdmin; DefaultRepositoryGroupAdmin defaultRepositoryGroupAdmin;
@ -174,6 +179,7 @@ public class ArchivaDavResourceFactoryTest
resourceFactory.setRepositoryFactory( repoFactory ); resourceFactory.setRepositoryFactory( repoFactory );
resourceFactory.setRepositoryRequest( repoRequest ); resourceFactory.setRepositoryRequest( repoRequest );
resourceFactory.setConnectors( new OverridingRepositoryProxyConnectors() ); resourceFactory.setConnectors( new OverridingRepositoryProxyConnectors() );
resourceFactory.setRemoteRepositoryAdmin( remoteRepositoryAdmin );
} }
private ManagedRepository createManagedRepository( String id, String location, String layout ) private ManagedRepository createManagedRepository( String id, String location, String layout )