contrib/jwrapper: add 4 more tests from a javap output
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 22 Jul 2015 14:01:04 +0000 (10:01 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 24 Jul 2015 13:44:24 +0000 (09:44 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/jwrapper/Makefile
contrib/jwrapper/tests/inits.javap [new file with mode: 0644]
contrib/jwrapper/tests/long.javap [new file with mode: 0644]
contrib/jwrapper/tests/many.javap [new file with mode: 0644]
contrib/jwrapper/tests/testjvm.javap [new file with mode: 0644]

index 4bdd6a6..a6aa956 100644 (file)
@@ -20,6 +20,14 @@ clean:
 
 check: bin/jwrapper tests/wildcards.javap
        mkdir -p tmp
+       bin/jwrapper -v -u comment -o tests/long.nit tests/long.javap
+       ../../bin/nitpick -q tests/long.nit
+       bin/jwrapper -v -u comment -o tests/inits.nit tests/inits.javap
+       ../../bin/nitpick -q tests/inits.nit
+       bin/jwrapper -v -u comment -o tests/testjvm.nit tests/testjvm.javap
+       ../../bin/nitpick -q tests/testjvm.nit
+       bin/jwrapper -v -u comment -o tests/many.nit tests/many.javap
+       ../../bin/nitpick -q tests/many.nit
        bin/jwrapper -v -u comment -o tests/wildcards.nit tests/wildcards.javap
        ../../bin/nitpick -q tests/wildcards.nit
 
diff --git a/contrib/jwrapper/tests/inits.javap b/contrib/jwrapper/tests/inits.javap
new file mode 100644 (file)
index 0000000..270934d
--- /dev/null
@@ -0,0 +1,5 @@
+public class org.example.ClassA {
+       public org.example.ClassA();
+       public org.example.ClassA(long);
+       public org.example.ClassA(java.lang.Object);
+}
diff --git a/contrib/jwrapper/tests/long.javap b/contrib/jwrapper/tests/long.javap
new file mode 100644 (file)
index 0000000..5cf849f
--- /dev/null
@@ -0,0 +1,3 @@
+
+class com.sun.xml.internal.bind.v2.model.impl.RuntimeElementInfoImpl$RuntimePropertyImpl extends com.sun.xml.internal.bind.v2.model.impl.ElementInfoImpl<java.lang.reflect.Type, java.lang.Class, java.lang.reflect.Field, java.lang.reflect.Method>.PropertyImpl implements com.sun.xml.internal.bind.v2.model.runtime.RuntimeElementPropertyInfo, com.sun.xml.internal.bind.v2.model.runtime.RuntimeTypeRef {
+}
diff --git a/contrib/jwrapper/tests/many.javap b/contrib/jwrapper/tests/many.javap
new file mode 100644 (file)
index 0000000..9e05bcf
--- /dev/null
@@ -0,0 +1,8 @@
+public class org.example.ClassA {
+       public org.example.ClassB Foo(org.example.ClassC);
+       public org.example.ClassB Bar(org.example.ClassC);
+       public org.example.ClassB an_attribute;
+}
+public class org.example.ClassB extends org.example.ClassA {
+       public org.example.ClassA Foo(org.example.ClassC);
+}
diff --git a/contrib/jwrapper/tests/testjvm.javap b/contrib/jwrapper/tests/testjvm.javap
new file mode 100644 (file)
index 0000000..1c08c8c
--- /dev/null
@@ -0,0 +1,9 @@
+Compiled from "TestJvm.java"
+public class test_jvm.TestJvm {
+  public test_jvm.TestJvm();
+  public test_jvm.Test2 getTest();
+  public boolean isBool();
+  public char getC();
+  public int getI();
+  public float getF();
+}