mirror of https://github.com/apache/archiva.git
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:
parent
91af8c3d5a
commit
fc087e3f5e
|
@ -514,10 +514,6 @@ public abstract class AbstractRepositoryServletTestCase
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
//WebClient client = newClient();
|
|
||||||
//client.getPage( "http://localhost:" + port + "/reinit/reload" );
|
|
||||||
//return client.getPage( "http://localhost:" + port + path ).getWebResponse();
|
|
||||||
|
|
||||||
MockHttpServletRequest request = new MockHttpServletRequest();
|
MockHttpServletRequest request = new MockHttpServletRequest();
|
||||||
request.setRequestURI( webRequest.getUrl().getPath() );
|
request.setRequestURI( webRequest.getUrl().getPath() );
|
||||||
request.addHeader( "User-Agent", "Apache Archiva unit test" );
|
request.addHeader( "User-Agent", "Apache Archiva unit test" );
|
||||||
|
@ -554,6 +550,12 @@ public abstract class AbstractRepositoryServletTestCase
|
||||||
{
|
{
|
||||||
return response.getStatus();
|
return response.getStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getResponseHeaderValue( String headerName )
|
||||||
|
{
|
||||||
|
return response.getHeader( headerName );
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue