System.err.println("Returned: " + mri.test_Void_Int());
System.err.println("Done.\n");
//test_Remote_Void
System.err.println("Testing test_Remote_Void...");
obj = new MyRemoteObject1("Main for test_Remote_Void.");
exportedObjects.add(obj);
mri.test_Remote_Void(obj);
System.err.println("Done.\n");
//tests remote Object extending another remote object
System.err.println("Testing test_Remote_Void with remote object "
+ "extending another remote object...");
obj = new MyRemoteObject4("Main for test_Remote_Void 1.");
exportedObjects.add(obj);
mri.test_Remote_Void(obj);
System.err.println("Done.\n");
// test_Void_Remote
System.err.println("Testing test_Void_Remote...");
System.err.println("Returned: " + mri.test_Void_Remote());
System.err.println("Done.\n");
// test_Long_Long
System.err.println("Testing test_Long_Long...");
System.err.println("Returned: "
+ mri.test_Long_Long(112233445566778899L));
System.err.println("Done.\n");
// test_String_String
System.err.println("Testing test_String_String...");
System.err.println("Returned: "
+ mri.test_String_String("Main for test_String_String."));
System.err.println("Done.\n");
// test_Remote_Remote
System.err.println("Testing test_Remote_Remote...");
obj = new MyRemoteObject1("Main for test_Remote_Remote.");
exportedObjects.add(obj);
System.err.println("Returned: " + mri.test_Remote_Remote(obj));
System.err.println("Done.\n");
// test_RemoteString_Void
System.err.println("Testing test_RemoteString_Void...");
obj = new MyRemoteObject1("Main for test_RemoteString_Void.");
exportedObjects.add(obj);
mri.test_RemoteString_Void(obj,
"Main for test_RemoteString_Void (2).");
System.err.println("Done.\n");
// test_RemoteRemote_Remote
System.err.println("Testing test_RemoteRemote_Remote...");
obj = new MyRemoteObject1("Main for test_RemoteRemote_Remote.");
Remote obj1 = new MyRemoteObject3(
"Main for test_RemoteRemote_Remote (2).");
exportedObjects.add(obj);
exportedObjects.add(obj1);
System.err.println("Returned: "
+ mri.test_RemoteRemote_Remote(obj, obj1));
System.err.println("Done.\n");
// test_BooleanStringRemote_Void
System.err.println("Testing test_BooleanStringRemote_Void...");
obj = new MyRemoteObject1(
"Main for test_BooleanStringRemote_Void (2).");
exportedObjects.add(obj);
mri.test_BooleanStringRemote_Void(false,
"Main for test_BooleanStringRemote_Void.", obj);
System.err.println("Done.\n");
// test_Proxy_Void
System.err.println("Testing test_Proxy_Void...");
Object proxy = Proxy.newProxyInstance(
Thread.currentThread().getContextClassLoader(),
new Class[] { MyRemoteInterface1.class },
new MyInvocationHandler());
mri.test_Proxy_Void(proxy);
System.err.println("Done.\n");
// test_Array_Void
System.err.println("Testing test_Array_Void...");
mri.test_Array_Void(new String[] { "Main for test_Array_Void 1.",
"Main for test_Array_Void 2." });
System.err.println("Done.\n");
// test_Void_Array
System.err.println("Testing test_Void_Array...");
printArray(mri.test_Void_Array());
System.err.println("Done.\n");
// test_RemoteArray_Void
System.err.println("Testing test_RemoteArray_Void...");
obj = new MyRemoteObject1("Main for test_RemoteArray_Void 1.");
obj1 = new MyRemoteObject1("Main for test_RemoteArray_Void 2.");
exportedObjects.add(obj);
exportedObjects.add(obj1);
mri.test_RemoteArray_Void(new Remote[] { obj, obj1 });
System.err.println("Done.\n");