From b0fadc98f5597b2f2ecdf17f51d7eea30a402bce Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 9 May 2023 20:48:15 +1000 Subject: [PATCH] fix mock Signed-off-by: Olivier Lamy --- .../webdav/ArchivaDavSessionProviderTest.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavSessionProviderTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavSessionProviderTest.java index b657c082b..f857940a8 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavSessionProviderTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavSessionProviderTest.java @@ -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 upgrade(Class handlerClass) throws IOException, ServletException { + return null; + } + + @Override + public long getContentLengthLong() { + return 0; + } + @Override public void login( String s, String s1 ) throws ServletException -- 2.39.5