mirror of https://github.com/apache/archiva.git
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:
parent
d2905d78a5
commit
a92c8cf8d9
|
@ -1356,4 +1356,14 @@ public class ArchivaDavResourceFactory
|
|||
{
|
||||
this.connectors = connectors;
|
||||
}
|
||||
|
||||
public RemoteRepositoryAdmin getRemoteRepositoryAdmin()
|
||||
{
|
||||
return remoteRepositoryAdmin;
|
||||
}
|
||||
|
||||
public void setRemoteRepositoryAdmin( RemoteRepositoryAdmin remoteRepositoryAdmin )
|
||||
{
|
||||
this.remoteRepositoryAdmin = remoteRepositoryAdmin;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue