diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 8003245d3..1c83580a8 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -117,7 +117,8 @@ javax.servlet - servlet-api + javax.servlet-api + 3.0.1 provided 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 8c4985a89..52d4c3731 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 @@ -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 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." );