Adding permission inclusion for callback helper function; some testcases on enum...
[iot2.git] / config / iotpolicy / testclasspolicy.pol
index ebe25337afd9187c0c51ec324e75eb913585cecd..481a284c815ca65f6068b2d680b5ede69c864d01 100644 (file)
@@ -27,6 +27,8 @@ public interface TestClassInterface {
        public void registerCallback(CallBackInterface _cb);
        public int callBack();
 
+       public Enum handleEnum(Enum en);
+
        public int getA();
        public void setA(int _int);
        public void setB(float _float);
@@ -60,6 +62,7 @@ public interface TestClassInterface {
                method = "getCharList(List<Character> in)";
                method = "registerCallback(CallBackInterface _cb)";
                method = "callBack()";
+               method = "handleEnum(Enum en)";
                method = "getA()";
                method = "setA(int _int)";
                method = "setB(float _float)";
@@ -73,12 +76,19 @@ public interface TestClassInterface {
                method = "setACAndGetA(String newC, int newA)";
        }
 
-       struct StructJ {
+       enum Enum {
+
+               APPLE,
+               ORANGE,
+               GRAPE
+       }
+
+       struct Struct {
 
                string  name;
                float   value;
                int     year;
-       } 
+       }
 }