need to override this one too

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1555676 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2014-01-06 05:32:16 +00:00
parent 91af8c3d5a
commit fc087e3f5e
1 changed files with 6 additions and 4 deletions

View 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 );
}
};
}