contrib/jwrapper tests: add 2 tests with static properties and a generic class
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 27 Jul 2015 13:49:41 +0000 (09:49 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 29 Jul 2015 19:08:58 +0000 (15:08 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/jwrapper/Makefile
contrib/jwrapper/tests/generics.javap [new file with mode: 0644]
contrib/jwrapper/tests/statics.javap [new file with mode: 0644]

index 4a52abf..ceb9722 100644 (file)
@@ -20,6 +20,10 @@ clean:
 
 check: bin/jwrapper tests/wildcards.javap
        mkdir -p tmp
+       bin/jwrapper -v -u stub -o tests/statics.nit tests/statics.javap
+       ../../bin/nitpick -q tests/statics.nit
+       bin/jwrapper -v -u comment -o tests/generics.nit tests/generics.javap
+       ../../bin/nitpick -q tests/generics.nit
        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
diff --git a/contrib/jwrapper/tests/generics.javap b/contrib/jwrapper/tests/generics.javap
new file mode 100644 (file)
index 0000000..0753c90
--- /dev/null
@@ -0,0 +1,6 @@
+public abstract class android.os.asynctask<params, progress, result> {
+  public android.os.asynctask();
+  public final android.os.asynctask$status getstatus();
+  public final result get(long, java.util.concurrent.timeunit) throws java.lang.interruptedexception, java.util.concurrent.executionexception, java.util.concurrent.timeoutexception;
+  public final android.os.asynctask<params, progress, result> execute(params...);
+}
diff --git a/contrib/jwrapper/tests/statics.javap b/contrib/jwrapper/tests/statics.javap
new file mode 100644 (file)
index 0000000..a10cc75
--- /dev/null
@@ -0,0 +1,18 @@
+public final class com.oracle.net.Sdp {
+  public static java.net.Socket openSocket() throws java.io.IOException;
+  public static java.net.ServerSocket openServerSocket() throws java.io.IOException;
+  public static java.nio.channels.SocketChannel openSocketChannel() throws java.io.IOException;
+  public static java.nio.channels.ServerSocketChannel openServerSocketChannel() throws java.io.IOException;
+}
+public class com.sun.activation.registries.LogSupport {
+  public static void log(java.lang.String);
+  public static void log(java.lang.String, java.lang.Throwable);
+  public static boolean isLoggable();
+}
+public class com.sun.activation.registries.MailcapTokenizer {
+  public static final int UNKNOWN_TOKEN;
+}
+public final class com.sun.beans.TypeResolver {
+  public com.sun.beans.TypeResolver();
+  public static java.lang.reflect.Type resolveInClass(java.lang.Class<?>, java.lang.reflect.Type);
+}