]> source.dussan.org Git - archiva.git/commitdiff
fix junit spring configuration
authorOlivier Lamy <olamy@apache.org>
Mon, 13 Jun 2011 08:24:17 +0000 (08:24 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 13 Jun 2011 08:24:17 +0000 (08:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135059 13f79535-47bb-0310-9956-ffa450edef68

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

index f6e8a6e44e9af248f4b2517f02376a4ad8a1e446..b9e130624067dc29c9a279d57420399ac004229a 100644 (file)
@@ -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
index faaedbe2859384614fd49bacaee8ac7912fe204a..a9c88bc261637f14b651614bb257288c5f495b89 100644 (file)
     </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