Reverting type resolution in C++ to Java types, e.g. byte and char instead of just...
[iot2.git] / iotjava / iotrmi / Java / basics / TestClass_Stub.java
index 0a39b762fa07d8804a87e39f30a2347648387afa..d94a09d7e473d1af54d566a51c93cb9a62d9dea5 100644 (file)
@@ -11,11 +11,21 @@ public class TestClass_Stub {
 
                int port = 5010;
                String address = "localhost";
+               //String address = "128.195.136.170";   // dc-9.calit2.uci.edu
                int rev = 0;
 
                System.out.println("Allocated ports: " + Arrays.toString(ports));
 
                TestClassComplete_Stub tcstub = new TestClassComplete_Stub(port, address, rev, ports);
+               System.out.println("Return value: " + tcstub.getByte((byte)68));
+               System.out.println("Return value: " + tcstub.getShort((short)1234));
+               System.out.println("Return value: " + tcstub.getLong(12345678l));
+               System.out.println("Return value: " + tcstub.getFloat(12.345f));
+               System.out.println("Return value: " + tcstub.getDouble(12345.678));
+               System.out.println("Return value: " + tcstub.getBoolean(true));
+               System.out.println("Return value: " + tcstub.getChar('c'));
+
+               System.out.println("Return value: " + tcstub.getA());
                System.out.println("Return value: " + tcstub.setAndGetA(123));
                System.out.println("Return value: " + tcstub.setACAndGetA("string", 123));
                System.out.println("Return value: " + tcstub.sumArray(new String[] { "123", "456", "987" }));