FileDocCategorySizeDatePackage
AJAXRPC.javaAPI DocApache Axis 1.44403Sat Apr 22 18:57:26 BST 2006test.jaxrpc

AJAXRPC

public abstract class AJAXRPC extends TestCase
author
Guillaume Sauthier

Fields Summary
javax.xml.rpc.handler.HandlerInfo
handlerInfo0
javax.xml.rpc.handler.HandlerInfo
handlerInfo1
javax.xml.rpc.handler.HandlerInfo
handlerInfo2
Map
handler0Config
protected Map
handler1Config
protected Map
handler2Config
Constructors Summary
Methods Summary
protected voidassertHandlerRuntime(java.lang.String message, AAAHandler handler, int numHandleRequest, int numHandleResponse, int numHandleFault)
Convenience method to organize all test checking for a particular handler.

Checks to see if the expected number of calls to handleRequest, handleResponse and handleFault reconciles with actuals

param
message
param
handler the target handler to reconcile
param
numHandleRequest # of expected calls to handleRequest
param
numHandleResponse # of expected calls to handleResponse
param
numHandleFault # of expected call to handleFault

        assertEquals(message + ": handleRequest", numHandleRequest,
                handler.getHandleRequestInvocations());
        assertEquals(message + ": handleResponse", numHandleResponse,
                handler.getHandleResponseInvocations());
        assertEquals(message + ": handleFault", numHandleFault,
                handler.getHandleFaultInvocations());
    
protected test.jaxrpc.AJAXRPC$TestHandlerInfoChainFactorybuildInfoChainFactory()
Convenience method to create a HandlerInfoChainFactory

return

        List handlerInfos = new ArrayList();
        handlerInfos.add(handlerInfo0);
        handlerInfos.add(handlerInfo1);
        handlerInfos.add(handlerInfo2);
        TestHandlerInfoChainFactory factory = new TestHandlerInfoChainFactory(
                handlerInfos);
        return factory;
    
protected voidsetUp()
Sets up the handlerInfo and handlerConfigs for all tests. Each test has 3 JAX-RPC Handlers of the same type to keep things simple.

throws
Exception


                                    
         
        handlerInfo0 = new HandlerInfo();
        handlerInfo0.setHandlerClass(AAAHandler.class);
        handlerInfo1 = new HandlerInfo();
        handlerInfo1.setHandlerClass(AAAHandler.class);
        handlerInfo2 = new HandlerInfo();
        handlerInfo2.setHandlerClass(AAAHandler.class);
        handler0Config = new HashMap();
        handler1Config = new HashMap();
        handler2Config = new HashMap();
        handlerInfo0.setHandlerConfig(handler0Config);
        handlerInfo1.setHandlerConfig(handler1Config);
        handlerInfo2.setHandlerConfig(handler2Config);