From fc087e3f5ecf5ba27be9a6fc43a31403bc29f926 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 6 Jan 2014 05:32:16 +0000 Subject: [PATCH] need to override this one too git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1555676 13f79535-47bb-0310-9956-ffa450edef68 --- .../webdav/AbstractRepositoryServletTestCase.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 ); + } }; } -- 2.39.5