Methods Summary |
---|
public void | doTestDeploy()
String[] args = { "samples/message/deploy.wsdd" };
AdminClient.main(args);
|
public void | doTestMessage()
String[] args = { };
String res = (new TestMsg()).doit(args);
String expected="Res elem[0]=<ns1:e1 xmlns:ns1=\"urn:foo\">Hello</ns1:e1>"
+"Res elem[1]=<ns2:e1 xmlns:ns2=\"urn:foo\">World</ns2:e1>"
+"Res elem[2]=<ns3:e3 xmlns:ns3=\"urn:foo\">"
+"<![CDATA["
+"Text with\n\tImportant <b> whitespace </b> and tags! "
+"]]>"
+"</ns3:e3>";
assertEquals("test result elements", expected, res);
|
public void | doTestUndeploy()
String[] args = { "samples/message/undeploy.wsdd" };
AdminClient.main(args);
|
public static void | main(java.lang.String[] args)
TestMessageSample tester = new TestMessageSample("tester");
tester.testMessageService();
|
public void | testMessageService()
try {
log.info("Testing message sample.");
log.info("Testing deployment...");
doTestDeploy();
log.info("Testing service...");
doTestMessage();
doTestUndeploy();
log.info("Test complete.");
}
catch( Exception e ) {
e.printStackTrace();
throw new Exception("Fault returned from test: "+e);
}
|