diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java index 87162ace7..ed6782e79 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java @@ -514,10 +514,6 @@ public abstract class AbstractRepositoryServletTestCase throws Exception { - //WebClient client = newClient(); - //client.getPage( "http://localhost:" + port + "/reinit/reload" ); - //return client.getPage( "http://localhost:" + port + path ).getWebResponse(); - MockHttpServletRequest request = new MockHttpServletRequest(); request.setRequestURI( webRequest.getUrl().getPath() ); request.addHeader( "User-Agent", "Apache Archiva unit test" ); @@ -554,6 +550,12 @@ public abstract class AbstractRepositoryServletTestCase { return response.getStatus(); } + + @Override + public String getResponseHeaderValue( String headerName ) + { + return response.getHeader( headerName ); + } }; }