From: Alexis Laferrière Date: Mon, 27 Jul 2015 13:49:41 +0000 (-0400) Subject: contrib/jwrapper tests: add 2 tests with static properties and a generic class X-Git-Tag: v0.7.7~2^2~2 X-Git-Url: http://nitlanguage.org contrib/jwrapper tests: add 2 tests with static properties and a generic class Signed-off-by: Alexis Laferrière --- diff --git a/contrib/jwrapper/Makefile b/contrib/jwrapper/Makefile index 4a52abf..ceb9722 100644 --- a/contrib/jwrapper/Makefile +++ b/contrib/jwrapper/Makefile @@ -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 index 0000000..0753c90 --- /dev/null +++ b/contrib/jwrapper/tests/generics.javap @@ -0,0 +1,6 @@ +public abstract class android.os.asynctask { + 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 execute(params...); +} diff --git a/contrib/jwrapper/tests/statics.javap b/contrib/jwrapper/tests/statics.javap new file mode 100644 index 0000000..a10cc75 --- /dev/null +++ b/contrib/jwrapper/tests/statics.javap @@ -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); +}