/hg/rhino-tests: Added new testGetResourceNPETest case into

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Nov 18 00:28:31 PST 2013


changeset d4ce8969d3f8 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=d4ce8969d3f8
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Nov 18 09:32:27 2013 +0100

	Added new testGetResourceNPETest case into
	ScriptEngineManagerClassTest.


diffstat:

 ChangeLog                                            |   6 ++++++
 src/org/RhinoTests/ScriptEngineManagerClassTest.java |  13 +++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diffs (36 lines):

diff -r 53cc1d7cfe80 -r d4ce8969d3f8 ChangeLog
--- a/ChangeLog	Fri Nov 15 10:22:53 2013 +0100
+++ b/ChangeLog	Mon Nov 18 09:32:27 2013 +0100
@@ -1,3 +1,9 @@
+2013-11-18  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/ScriptEngineManagerClassTest.java:
+	Added new testGetResourceNPETest case into
+	ScriptEngineManagerClassTest.
+
 2013-11-15  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/ScriptEngineClassTest.java:
diff -r 53cc1d7cfe80 -r d4ce8969d3f8 src/org/RhinoTests/ScriptEngineManagerClassTest.java
--- a/src/org/RhinoTests/ScriptEngineManagerClassTest.java	Fri Nov 15 10:22:53 2013 +0100
+++ b/src/org/RhinoTests/ScriptEngineManagerClassTest.java	Mon Nov 18 09:32:27 2013 +0100
@@ -1698,6 +1698,19 @@
     }
 
     /**
+     * Test for method javax.script.ScriptEngineManager.getClass().getResourceNPETest()
+     */
+    protected void testGetResourceNPETest() {
+        try {
+            Object resource = this.scriptEngineManagerClass.getResource(null);
+            throw new AssertionError("NullPointerException expected!");
+        }
+        catch (NullPointerException e) {
+            //This is OK OK
+        }
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.ScriptEngineManager
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list