FileDocCategorySizeDatePackage
JAXRPCHandlerEvalTestCase.javaAPI DocApache Axis 1.43585Sat Apr 22 18:57:28 BST 2006test.wsdl.jaxrpchandlereval

JAXRPCHandlerEvalTestCase

public class JAXRPCHandlerEvalTestCase extends TestCase

Fields Summary
Constructors Summary
public JAXRPCHandlerEvalTestCase()

		super("JAXRPCHandlerEvalTest");
	
public JAXRPCHandlerEvalTestCase(String name)

		super(name);
	
Methods Summary
public voiddoClientDeploy()

		String[] args1 = { "client", "test/wsdl/jaxrpchandlereval/client-deploy.wsdd" };
		Admin.main(args1);
	
public voiddoClientUndeploy()

		String[] args1 = { "client", "test/wsdl/jaxrpchandlereval/client-undeploy.wsdd" };
		Admin.main(args1);
	
public voidtestClientReturnFalse()

		doClientDeploy();
		HandlerTracker.init();
		try {
			updateInfo("client-return-false");
		} catch (RemoteException e) {
			HandlerTracker.assertClientHandlerOrder(new String[] { 
				"clienthandler1.handleRequest", "clienthandler1.handleResponse" });
			HandlerTracker.assertServerHandlerOrder(new String[] {});
		} finally {
			doClientUndeploy();
		}
	
public voidtestClientThrowJaxRpcException()

		doClientDeploy();
		HandlerTracker.init();
		try {
			updateInfo("client-throw-jaxrpcexception");
		} catch (RemoteException e) {
			HandlerTracker.assertClientHandlerOrder(new String[] { 
				"clienthandler1.handleRequest", "clienthandler2.handleRequest" });
			HandlerTracker.assertServerHandlerOrder(new String[] {});
		} finally {
			doClientUndeploy();
		}
	
public voidtestHappyPath()

		doClientDeploy();
		HandlerTracker.init();
		try {
			updateInfo("Using the happy path");
			HandlerTracker.assertClientHandlerOrder(new String[] { 
				"clienthandler1.handleRequest", "clienthandler2.handleRequest",
				"clienthandler2.handleResponse", "clienthandler1.handleResponse" });
			HandlerTracker.assertServerHandlerOrder(new String[] { 
				"serverhandler2.handleResponse", "serverhandler1.handleResponse" });
		} finally {
			doClientUndeploy();
		}
	
public voidtestServerReturnFalse()

		doClientDeploy();
		HandlerTracker.init();
		try {
			updateInfo("server-return-false");
		} catch (RemoteException e) {
			HandlerTracker.assertClientHandlerOrder(new String[] { 
				"clienthandler1.handleRequest", "clienthandler2.handleRequest",
				"clienthandler2.handleResponse", "clienthandler1.handleResponse" });
			HandlerTracker.assertServerHandlerOrder(new String[] { 
				"serverhandler2.handleResponse", "serverhandler1.handleResponse" });
		} finally {
			doClientUndeploy();
		}
	
public voidtestServerThrowSoapFaultException()

		doClientDeploy();
		HandlerTracker.init();
		try {
			updateInfo("server-throw-soapfaultexception");
		} catch (RemoteException e) {
			HandlerTracker.assertClientHandlerOrder(new String[] { 
				"clienthandler1.handleRequest", "clienthandler2.handleRequest",
				"clienthandler2.handleResponse", "clienthandler1.handleResponse" });
			HandlerTracker.assertServerHandlerOrder(new String[] { 
				"serverhandler2.handleFault", "serverhandler1.handleFault" });
		} finally {
			doClientUndeploy();
		}
	
public java.lang.StringupdateInfo(java.lang.String payload)

	    UserAccountServiceLocator locator = new UserAccountServiceLocator();
	    UserAccount port = locator.getUserAccount();
	    String retval = null;
	
	    try {
	        retval = port.updateInfo(payload);
	    } catch (Exception ex) {
			throw ex;
	    }
		return retval;