Methods Summary |
---|
public void | setUp()The JUnit setup method
super.setUp();
services=url+"/services/";
invalid_service=services+"invalid-name";
|
public void | testInvalidServiceRaisesError()
WebRequest request = new GetMethodWebRequest(invalid_service);
expectErrorCode(request,404, null);
|
public void | testInvalidServiceWsdlRaisesError()A missing wsdl page should be a 404 error;
WebRequest request = new GetMethodWebRequest(invalid_service+"?wsdl");
// "The AXIS engine could not find a target service to invoke!");
expectErrorCode(request,404, null);
|
public void | testServices()verify the services url works
WebRequest request = new GetMethodWebRequest(services);
expectErrorCode(request,404, null);
|
public void | testServlet()verify the /servlet url is there
WebRequest request = new GetMethodWebRequest(url+"/servlet/AxisServlet");
assertStringInBody(request,services_text);
|
public void | testVersionMethod()test version call
WebRequest request = new GetMethodWebRequest(services
+ "Version?method=getVersion");
WebResponse response=makeRequest(request);
String body = response.getText();
assertTrue(body.indexOf("<?xml") ==0);
assertTrue(body.indexOf("<getVersionReturn")>0);
|
public void | testVersionNoMethod()test a get without any method
WebRequest request = new GetMethodWebRequest(services
+ "Version?arg1=foo&arg2=bar");
expectErrorCode(request, 400, null);
|
public void | testVersionWSDL()test version call
WebRequest request = new GetMethodWebRequest(services
+"Version?wsdl");
assertStringInBody(request,"<wsdl:definitions");
|