mirror of https://github.com/apache/archiva.git
this should be fix unit test on ci server : again the famous it works on my machine :-)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1164354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
428ab46553
commit
56587c1e6d
|
@ -91,12 +91,13 @@ public class AddManagedRepositoryActionTest
|
||||||
|
|
||||||
repositoryTaskSchedulerControl = MockClassControl.createControl( RepositoryArchivaTaskScheduler.class );
|
repositoryTaskSchedulerControl = MockClassControl.createControl( RepositoryArchivaTaskScheduler.class );
|
||||||
repositoryTaskScheduler = (RepositoryArchivaTaskScheduler) repositoryTaskSchedulerControl.getMock();
|
repositoryTaskScheduler = (RepositoryArchivaTaskScheduler) repositoryTaskSchedulerControl.getMock();
|
||||||
action.setRepositoryTaskScheduler( repositoryTaskScheduler );
|
|
||||||
|
|
||||||
location = new File( "target/test/location" );
|
location = new File( "target/test/location" );
|
||||||
( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setArchivaConfiguration( archivaConfiguration );
|
( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setArchivaConfiguration( archivaConfiguration );
|
||||||
( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRoleManager( roleManager );
|
( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRoleManager( roleManager );
|
||||||
( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRegistry( registry );
|
( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRegistry( registry );
|
||||||
|
( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRepositoryTaskScheduler(
|
||||||
|
repositoryTaskScheduler );
|
||||||
action.setManagedRepositoryAdmin( getManagedRepositoryAdmin() );
|
action.setManagedRepositoryAdmin( getManagedRepositoryAdmin() );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue