aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-06-13 08:24:17 +0000
committerOlivier Lamy <olamy@apache.org>2011-06-13 08:24:17 +0000
commitb55ef5058a06f06cd30a2ace781a0cee29693682 (patch)
treeb636642cc1badb84410ba5364c1d9b049157f390 /archiva-modules/archiva-web/archiva-webdav
parent4ebc70a0e642ee90b30cedbf4f5550bfbe9beb67 (diff)
downloadarchiva-b55ef5058a06f06cd30a2ace781a0cee29693682.tar.gz
archiva-b55ef5058a06f06cd30a2ace781a0cee29693682.zip
fix junit spring configuration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java5
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml7
2 files changed, 12 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java
index f6e8a6e44..b9e130624 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java
@@ -25,16 +25,21 @@ import org.apache.jackrabbit.webdav.DavException;
import org.apache.jackrabbit.webdav.DavServletRequest;
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
import org.springframework.context.ApplicationContext;
+import org.springframework.stereotype.Service;
+
+import javax.inject.Inject;
/**
* UnauthenticatedDavResourceFactory
*
* @version $Id:
*/
+@Service("archivaDavResourceFactory#unauthenticated")
public class UnauthenticatedDavResourceFactory
extends ArchivaDavResourceFactory
{
+ @Inject
public UnauthenticatedDavResourceFactory( ApplicationContext applicationContext, PlexusSisuBridge plexusSisuBridge,
ArchivaConfiguration archivaConfiguration )
throws PlexusSisuBridgeException
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 faaedbe28..a9c88bc26 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
@@ -67,4 +67,11 @@
</property>
</bean>
+ <alias name="archivaDavResourceFactory#unauthenticated" alias="davResourceFactory#archiva"/>
+ <!--
+ <bean name="davResourceFactory#archiva" class="org.apache.maven.archiva.webdav.UnauthenticatedDavResourceFactory">
+ <property name="servletAuth" ref="servletAuthenticator"/>
+ </bean>
+ -->
+
</beans> \ No newline at end of file