From: Olivier Lamy Date: Thu, 13 Sep 2012 11:34:58 +0000 (+0000) Subject: fix spring context for unit tests X-Git-Tag: archiva-1.4-M3~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c13f4ec193fd203ceaa389597be8778bc674696;p=archiva.git fix spring context for unit tests git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384281 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadArtifactsTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadArtifactsTest.java index ff1c7322e..6f8959cf0 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadArtifactsTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadArtifactsTest.java @@ -86,7 +86,7 @@ public class DownloadArtifactsTest protected String getSpringConfigLocation() { - return "classpath*:META-INF/spring-context.xml classpath*:spring-context-artifacts-download.xml"; + return "classpath*:META-INF/spring-context.xml classpath*:spring-context-test-common.xml classpath*:spring-context-artifacts-download.xml"; } @Before diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java index 118ff0dc8..3d24a30df 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java @@ -66,7 +66,7 @@ public class DownloadMergedIndexTest protected String getSpringConfigLocation() { - return "classpath*:META-INF/spring-context.xml classpath*:spring-context-merge-index-download.xml"; + return "classpath*:META-INF/spring-context.xml classpath*:spring-context-test-common.xml classpath*:spring-context-merge-index-download.xml"; } @After diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-web-common/src/test/resources/META-INF/spring-context.xml deleted file mode 100644 index 4478e93dc..000000000 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/resources/META-INF/spring-context.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - 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-web-common/src/test/resources/spring-context-test-common.xml b/archiva-modules/archiva-web/archiva-web-common/src/test/resources/spring-context-test-common.xml new file mode 100644 index 000000000..4478e93dc --- /dev/null +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/resources/spring-context-test-common.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + 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-web-common/src/test/webapp/WEB-INF/feedServletTest-web.xml b/archiva-modules/archiva-web/archiva-web-common/src/test/webapp/WEB-INF/feedServletTest-web.xml index 94cbba3c7..180c5473a 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/webapp/WEB-INF/feedServletTest-web.xml +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/webapp/WEB-INF/feedServletTest-web.xml @@ -47,6 +47,7 @@ contextConfigLocation classpath*:/META-INF/spring-context.xml + classpath*:/spring-context-test-common.xml classpath*:/spring-context-rss-servlet.xml diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/test/junit-4.9.jar b/archiva-modules/archiva-web/archiva-webapp-js/src/test/junit-4.9.jar deleted file mode 100644 index 142081561..000000000 Binary files a/archiva-modules/archiva-web/archiva-webapp-js/src/test/junit-4.9.jar and /dev/null differ diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/repository.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/repository.xml new file mode 100644 index 000000000..0be86ebbd --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/repository.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +