Methods Summary |
---|
public void | doTestDeploy()
String[] args = { "-llocal:", "samples/transport/deploy.wsdd" };
AdminClient.main(args);
|
public void | doTestIBM()
String[] args = { "IBM" };
try {
FileTest.main(args);
} catch (AxisFault e) {
String fault = e.getFaultString();
if (fault == null) throw e;
if (fault.indexOf("java.net.UnknownHost")<0) {
int start = fault.indexOf(": ");
log.info(fault.substring(start+2));
} else if (fault.equals("timeout")) {
log.info("timeout");
} else {
throw e;
}
}
|
public void | doTestXXX()
String[] args = { "XXX" };
FileTest.main(args);
|
public static void | main(java.lang.String[] args)bogus 'main'
new TestTransportSample("foo").testService();
|
public void | testService()
try {
log.info("Testing transport sample.");
log.info("Testing deployment...");
doTestDeploy();
log.info("Testing service with symbol IBM...");
doTestIBM();
log.info("Testing service with symbol XXX...");
doTestXXX();
log.info("Test complete.");
}
catch( Exception e ) {
e.printStackTrace();
throw new Exception("Fault returned from test: "+e);
}
|