]> source.dussan.org Git - archiva.git/commitdiff
need to override this one too
authorOlivier Lamy <olamy@apache.org>
Mon, 6 Jan 2014 05:32:16 +0000 (05:32 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 6 Jan 2014 05:32:16 +0000 (05:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1555676 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/AbstractRepositoryServletTestCase.java

index 87162ace76d05039b896d527fe419a3b75c1176b..ed6782e798591c6dc6b17addd8ffede059c39c72 100644 (file)
@@ -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 );
+            }
         };
     }