Methods Summary |
---|
public void | destroy()
|
public void | doSomething()
methodCalled = true;
|
public javax.xml.namespace.QName[] | getHeaders()
return null;
|
public boolean | handleFault(javax.xml.rpc.handler.MessageContext mc)
return true;
|
public boolean | handleRequest(javax.xml.rpc.handler.MessageContext mc)
String[] roles = ((SOAPMessageContext) mc).getRoles();
for (int i = 0; i < roles.length; i++) {
if (ROLE_ONE.equals(roles[i]))
roleOneFound = true;
if (ROLE_TWO.equals(roles[i]))
roleTwoFound = true;
}
handleRequestCalled = true;
return true;
|
public boolean | handleResponse(javax.xml.rpc.handler.MessageContext mc)
handleResponseCalled = true;
return true;
|
public void | init(javax.xml.rpc.handler.HandlerInfo handlerInfo)
assertEquals("hossa", (String) handlerInfo.getHandlerConfig().get("param1"));
initCalled = true;
|
protected void | setUp()
transport = new LocalTransport(new AxisServer(new XMLStringProvider(wsdd)));
transport.setRemoteService(SERVICE_NAME);
|
public void | testJAXRPCHandlerRoles()
Call call = new Call(new Service());
call.setTransport(transport);
call.invoke("doSomething", null);
assertTrue( roleOneFound);
assertTrue( roleTwoFound);
assertTrue( initCalled);
assertTrue( handleRequestCalled);
assertTrue( handleResponseCalled);
assertTrue( methodCalled);
|