From 56587c1e6dba06f0c29646440db87077a5155ce5 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 2 Sep 2011 06:17:27 +0000 Subject: [PATCH] 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 --- .../admin/repositories/AddManagedRepositoryActionTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/AddManagedRepositoryActionTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/AddManagedRepositoryActionTest.java index dece63542..a8c9aff71 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/AddManagedRepositoryActionTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/admin/repositories/AddManagedRepositoryActionTest.java @@ -91,12 +91,13 @@ public class AddManagedRepositoryActionTest repositoryTaskSchedulerControl = MockClassControl.createControl( RepositoryArchivaTaskScheduler.class ); repositoryTaskScheduler = (RepositoryArchivaTaskScheduler) repositoryTaskSchedulerControl.getMock(); - action.setRepositoryTaskScheduler( repositoryTaskScheduler ); location = new File( "target/test/location" ); ( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setArchivaConfiguration( archivaConfiguration ); ( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRoleManager( roleManager ); ( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRegistry( registry ); + ( (DefaultManagedRepositoryAdmin) getManagedRepositoryAdmin() ).setRepositoryTaskScheduler( + repositoryTaskScheduler ); action.setManagedRepositoryAdmin( getManagedRepositoryAdmin() ); }