archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1135059 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test: java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java resources/spring-context.xml
Date Mon, 13 Jun 2011 08:24:17 GMT
Author: olamy
Date: Mon Jun 13 08:24:17 2011
New Revision: 1135059

URL: http://svn.apache.org/viewvc?rev=1135059&view=rev
Log:
fix junit spring configuration

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java
    archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java?rev=1135059&r1=1135058&r2=1135059&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/UnauthenticatedDavResourceFactory.java
Mon Jun 13 08:24:17 2011
@@ -25,16 +25,21 @@ import org.apache.jackrabbit.webdav.DavE
 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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml?rev=1135059&r1=1135058&r2=1135059&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/resources/spring-context.xml
Mon Jun 13 08:24:17 2011
@@ -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



Mime
View raw message