tests: update test_jvm
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 20 Jun 2016 22:52:45 +0000 (18:52 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 20 Jun 2016 22:52:45 +0000 (18:52 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

tests/test_jvm.nit

index 8b49b8b..d921bf4 100644 (file)
@@ -43,11 +43,10 @@ builder.options.add "-Djava.class.path=."
 #alt1#builder.options.clear
 #alt1#builder.options.add "-Djava.class.path=/tmp/"
 var jvm = builder.create_jvm
-var env = builder.jni_env
-assert env != null
+assert jvm != null
 
-# Test JavaVM::env
-assert not jvm.env.address_is_null
+var env = jvm.env
+assert not env.address_is_null
 
 print "---------------------Test 1----------------------"
 # get the class