rsps=disp.callRemoteMethods(null, "methodA", new Object[]{Boolean.TRUE, new Long(322649)},
new Class[]{boolean.class, long.class},
GroupRequest.GET_ALL, 0);
assertEquals(2, rsps.size());
for(Iterator it=rsps.values().iterator(); it.hasNext();) {
Rsp rsp=(Rsp)it.next();
assertNull(rsp.getValue());
assertTrue(rsp.wasReceived());
assertFalse(rsp.wasSuspected());
}
rsps=disp.callRemoteMethods(null, "methodB", null, (Class[])null, GroupRequest.GET_ALL, 0);
assertEquals(2, rsps.size());
for(Iterator it=rsps.values().iterator(); it.hasNext();) {
Rsp rsp=(Rsp)it.next();
assertNotNull(rsp.getValue());
assertEquals(Boolean.TRUE, rsp.getValue());
assertTrue(rsp.wasReceived());
assertFalse(rsp.wasSuspected());
}
rsps=disp.callRemoteMethods(null, "methodC", null, (Class[])null, GroupRequest.GET_ALL, 0);
assertEquals(2, rsps.size());
for(Iterator it=rsps.values().iterator(); it.hasNext();) {
Rsp rsp=(Rsp)it.next();
assertNotNull(rsp.getValue());
assertTrue(rsp.getValue() instanceof Throwable);
assertTrue(rsp.wasReceived());
assertFalse(rsp.wasSuspected());
}
disp.setRequestMarshaller(null);
disp.setResponseMarshaller(null);
disp2.setRequestMarshaller(null);