From 94faa497aea1f08226d4eb0a2121596488ab89a3 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 19 Aug 2011 17:15:41 +0000 Subject: [PATCH] fix webapp unit tests with commenting a spring which is not used and override the good one git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1159691 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/components-fragment.xml | 63 ------------------- .../resources/META-INF/spring-context.xml | 8 ++- .../src/test/resources/archiva-test.xml | 2 +- .../src/test/resources/spring-context.xml | 26 -------- .../resources/META-INF/spring-context.xml | 37 +++++++++++ .../webapp/WEB-INF/feedServletTest-web.xml | 2 +- .../repository-servlet-security-test/web.xml | 5 +- 7 files changed, 46 insertions(+), 97 deletions(-) delete mode 100644 archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/components-fragment.xml create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/test/resources/META-INF/spring-context.xml diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/components-fragment.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/components-fragment.xml deleted file mode 100644 index d472d5a56..000000000 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/components-fragment.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - org.codehaus.plexus.taskqueue.TaskQueue - repository-scanning - org.codehaus.plexus.taskqueue.DefaultTaskQueue - plexus-configurable - - - - - - - - - - - - org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor - repository-scanning - org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor - singleton - - - org.codehaus.plexus.taskqueue.execution.TaskExecutor - repository-scanning - - - org.codehaus.plexus.taskqueue.TaskQueue - repository-scanning - - - - repository-scanning - - - - diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/resources/META-INF/spring-context.xml index 2fd029c41..702cf13a0 100755 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/resources/META-INF/spring-context.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/resources/archiva-test.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/resources/archiva-test.xml index f921d6613..0c1f93c8f 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/resources/archiva-test.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/resources/archiva-test.xml @@ -1,4 +1,4 @@ - + - diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/META-INF/spring-context.xml new file mode 100644 index 000000000..b5890469f --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/META-INF/spring-context.xml @@ -0,0 +1,37 @@ + + + + + + + + + scheduler1 + org.quartz.simpl.SimpleThreadPool + 2 + 4 + org.quartz.simpl.RAMJobStore + + + + \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml index 0e8e38ec5..69ae36009 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/webapp/WEB-INF/feedServletTest-web.xml @@ -1,4 +1,4 @@ - +