Object params[] = new Object[]{new String[]{"inString"}};
IMessage iMessage = receiveMessage(iReciever, sendRequest(iSender,
oId,
TypeDescription.getTypeDescription(test.XTestInterface.class),
"methodWithInOutParameter",
new ThreadId(new byte[]{0, 1}),
params,
new Boolean[1],
new Boolean[1]));
Object t_params[][] = new Object[1][];
iMessage.getData(t_params);
System.err.println("\t\t\tgot in request:" + ((String [])t_params[0][0])[0] + " expected: inString");
passed = passed && "inString".equals(((String [])t_params[0][0])[0]);
// provide reply
((String [])t_params[0][0])[0] = "outString";
// send an exception as reply
iMessage = receiveMessage(iSender, sendReply(iReciever,
false,
new ThreadId(new byte[]{0, 1}),
null));
iMessage.getData(new Object[1][]);
System.err.println("\t\t\tgot in reply:" + ((String [])params[0])[0] + " expected: outString");