]> source.dussan.org Git - archiva.git/commitdiff
fix mock
authorOlivier Lamy <olamy@apache.org>
Tue, 9 May 2023 10:48:15 +0000 (20:48 +1000)
committerOlivier Lamy <olamy@apache.org>
Tue, 9 May 2023 10:48:15 +0000 (20:48 +1000)
Signed-off-by: Olivier Lamy <olamy@apache.org>
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavSessionProviderTest.java

index b657c082b8efa3d444d5adb7f9bbafb7a9f85a17..f857940a80a9523a8ec43609ada4eb3f42757bc1 100644 (file)
@@ -47,6 +47,7 @@ import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
+import javax.servlet.http.HttpUpgradeHandler;
 import javax.servlet.http.Part;
 import java.io.BufferedReader;
 import java.io.IOException;
@@ -101,7 +102,7 @@ public class ArchivaDavSessionProviderTest
     }
 
     @SuppressWarnings( "unchecked" )
-    private class HttpServletRequestMock
+    private static class HttpServletRequestMock
         implements HttpServletRequest
     {
 
@@ -112,6 +113,21 @@ public class ArchivaDavSessionProviderTest
             throw new UnsupportedOperationException( "Not supported yet." );
         }
 
+        @Override
+        public String changeSessionId() {
+            return null;
+        }
+
+        @Override
+        public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException {
+            return null;
+        }
+
+        @Override
+        public long getContentLengthLong() {
+            return 0;
+        }
+
         @Override
         public void login( String s, String s1 )
             throws ServletException