Adjusting and cleaning up ZigbeeTest to install Vigilia ZigBee gateway and devices.
[iot2.git] / iotjava / iotrmi / Java / sample / TestClass_Skeleton.java
index 5958f1f347aa60691bc311ff1a82905ee747a050..822e0644c318090528f08697baf85a3b6f9a2198 100644 (file)
@@ -2,13 +2,8 @@ package iotrmi.Java.sample;
 
 import java.io.IOException;
 import java.util.Arrays;
-import java.util.Set;
-import java.util.Map;
-import java.util.HashMap;
 
 import java.util.List;
-import java.util.ArrayList;
-import java.util.Collections;
 
 import iotrmi.Java.IoTRMIObject;
 import iotrmi.Java.IoTRMICall;
@@ -18,10 +13,12 @@ public class TestClass_Skeleton implements TestClassInterface {
        /**
         * Class Constants
         */
-       private static int objIdCnt = 0; // Counter for callback object Ids
        private TestClassInterface tc;
        private int port;
        private IoTRMIObject rmiObj;
+
+       // Callback stuff
+       private static int objIdCnt = 0; // Counter for callback object Ids
        private IoTRMICall rmiCall;
        private CallBackInterface cbstub;
 
@@ -329,7 +326,7 @@ public class TestClass_Skeleton implements TestClassInterface {
                                case 11: structSize1 = ___structSize(); break;
                                case 12: ___handleEnum(); break;
                                default:
-                                       throw new Error("Method Id not recognized!");
+                                       throw new Error("Method Id " + methodId + " not recognized!");
                        }
 
                }