]> source.dussan.org Git - archiva.git/commitdiff
use a more modern servlet api artifact to fix webdav module test
authorOlivier Lamy <olamy@apache.org>
Tue, 25 Sep 2012 10:33:09 +0000 (10:33 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 25 Sep 2012 10:33:09 +0000 (10:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1389786 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/pom.xml
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavSessionProviderTest.java

index 8003245d3843e84ca95e9a8d93a5d0f8a5ac8b2f..1c83580a840de5aed387f791dcdd6af04c5e395e 100644 (file)
     </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
-      <artifactId>servlet-api</artifactId>
+      <artifactId>javax.servlet-api</artifactId>
+      <version>3.0.1</version>
       <scope>provided</scope>
     </dependency>
     <dependency>
index 8c4985a893247fff6a1f2bb9b1be9570cc7532c4..52d4c373116defbf7b65a64a21c21b2c8c4ed44b 100644 (file)
@@ -35,16 +35,24 @@ import org.apache.archiva.redback.authorization.UnauthorizedException;
 import org.apache.archiva.redback.system.SecuritySession;
 import org.apache.archiva.redback.integration.filter.authentication.HttpAuthenticator;
 
+import javax.servlet.AsyncContext;
+import javax.servlet.DispatcherType;
 import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
 import javax.servlet.ServletInputStream;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
 import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
+import javax.servlet.http.Part;
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.UnsupportedEncodingException;
 import java.security.Principal;
+import java.util.Collection;
 import java.util.Enumeration;
 import java.util.Locale;
 import java.util.Map;
@@ -96,6 +104,74 @@ public class ArchivaDavSessionProviderTest
     private class HttpServletRequestMock
         implements HttpServletRequest
     {
+
+        public boolean authenticate( HttpServletResponse httpServletResponse )
+            throws IOException, ServletException
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public void login( String s, String s1 )
+            throws ServletException
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public void logout()
+            throws ServletException
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public Collection<Part> getParts()
+            throws IOException, ServletException
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public Part getPart( String s )
+            throws IOException, ServletException
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public ServletContext getServletContext()
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public AsyncContext startAsync()
+            throws IllegalStateException
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public AsyncContext startAsync( ServletRequest servletRequest, ServletResponse servletResponse )
+            throws IllegalStateException
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public boolean isAsyncStarted()
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public boolean isAsyncSupported()
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public AsyncContext getAsyncContext()
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
+        public DispatcherType getDispatcherType()
+        {
+            throw new UnsupportedOperationException( "Not supported yet." );
+        }
+
         public Object getAttribute( String arg0 )
         {
             throw new UnsupportedOperationException( "Not supported yet." );