Skip NullPointerException backing object test in JVM
Change-Id: I1fe380db58f27983a11f93633fcf95a789fd5b3f
diff --git a/user/test/com/google/gwt/emultest/java/lang/NullPointerExceptionTest.java b/user/test/com/google/gwt/emultest/java/lang/NullPointerExceptionTest.java
index a72dcc2..8930a1a 100644
--- a/user/test/com/google/gwt/emultest/java/lang/NullPointerExceptionTest.java
+++ b/user/test/com/google/gwt/emultest/java/lang/NullPointerExceptionTest.java
@@ -16,9 +16,8 @@
package com.google.gwt.emultest.java.lang;
import com.google.gwt.core.client.JavaScriptObject;
-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
import com.google.gwt.junit.client.GWTTestCase;
+import com.google.gwt.testing.TestUtils;
import jsinterop.annotations.JsFunction;
@@ -32,8 +31,11 @@
return "com.google.gwt.emultest.EmulSuite";
}
- @DoNotRunWith(Platform.Devel)
public void testBackingJsObject() {
+ // Do not run the test in JVM.
+ if (TestUtils.isJvm()) {
+ return;
+ }
Object caughtNative = catchNpeInNative(new Callback() {
@Override
public void call() {