protected void traceCallEnd(String callType) {
System.out.println(callType + " end.");
}
public void testBadCallSynch() throws Exception {
final IRemoteService service = registerAndGetRemoteService();
if (service == null)
return;
// Following should throw exception because "concat1" method does not
// exist
try {
service.callSync(createRemoteCall("concat1", new Object[] {
"first", "second" }));
fail();
} catch (final ECFException e) {
// Exception should occur
}
// Following should throw exception because wrong number of params for
// concat
try {
service.callSync(createRemoteCall("concat",
new Object[] { "first" }));
fail();
} catch (final ECFException e) {
// Exception should occur
}