From 9b142e861d811a2623db10984ec4d4ce9afd56dd Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 7 Jun 2011 17:57:33 +0000 Subject: [PATCH] start fixing spring configuration for unit test in archiva-webdav git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1133115 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-web/archiva-webdav/pom.xml | 13 ++++++++++ .../repository-servlet-security-test/web.xml | 11 +++----- .../src/test/resources/spring-context.xml | 25 +++++++++++++++++++ 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 6d72c2708..b6ef0aca4 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -150,4 +150,17 @@ test + + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${project.build.outputDirectory} + + + + + diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/resources/WEB-INF/repository-servlet-security-test/web.xml b/archiva-modules/archiva-web/archiva-webdav/src/test/resources/WEB-INF/repository-servlet-security-test/web.xml index 291aa01ec..995a1e998 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/resources/WEB-INF/repository-servlet-security-test/web.xml +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/resources/WEB-INF/repository-servlet-security-test/web.xml @@ -28,18 +28,15 @@ org.springframework.web.context.ContextLoaderListener - - contextClass - org.codehaus.plexus.spring.PlexusWebApplicationContext - - contextConfigLocation - classpath*:/META-INF/plexus/components.xml classpath*:/META-INF/spring-context.xml - target/test-classes/org/apache/maven/archiva/webdav/RepositoryServletSecurityTest.xml + + diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml b/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml index 6742098a0..faaedbe28 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml @@ -27,6 +27,8 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd" default-lazy-init="true"> + + @@ -42,4 +44,27 @@ + + + + + + + + + + + + + + + + ]]> + + + + \ No newline at end of file