diff options
author | Olivier Lamy <olamy@apache.org> | 2023-05-09 20:48:15 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2023-05-09 20:48:15 +1000 |
commit | b0fadc98f5597b2f2ecdf17f51d7eea30a402bce (patch) | |
tree | 48238daa5a91bf842e0adca4c62eda54740b11a0 | |
parent | 857aeefcda0142dec1250edcaa70fddb87accd8b (diff) | |
download | archiva-b0fadc98f5597b2f2ecdf17f51d7eea30a402bce.tar.gz archiva-b0fadc98f5597b2f2ecdf17f51d7eea30a402bce.zip |
fix mock
Signed-off-by: Olivier Lamy <olamy@apache.org>
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavSessionProviderTest.java | 18 |
1 files changed, 17 insertions, 1 deletions
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 { @@ -113,6 +114,21 @@ public class ArchivaDavSessionProviderTest } @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 { |