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

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Wed Nov 6 01:38:13 PST 2013


changeset bf9c54aa5bb9 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=bf9c54aa5bb9
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Nov 06 10:42:08 2013 +0100

	Added new testGetResourceNPETest case into AbstractScriptEngineClassTest.java.


diffstat:

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

diffs (36 lines):

diff -r 0101ff598e7e -r bf9c54aa5bb9 ChangeLog
--- a/ChangeLog	Tue Nov 05 11:02:46 2013 +0100
+++ b/ChangeLog	Wed Nov 06 10:42:08 2013 +0100
@@ -1,3 +1,9 @@
+2013-11-06  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+	Added new testGetResourceNPETest case into
+	AbstractScriptEngineClassTest.java.
+
 2013-11-05  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
diff -r 0101ff598e7e -r bf9c54aa5bb9 src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Tue Nov 05 11:02:46 2013 +0100
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Wed Nov 06 10:42:08 2013 +0100
@@ -1776,6 +1776,19 @@
     }
 
     /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getResourceAsStreamNPETest()
+     */
+    protected void testGetResourceAsStreamNPETest() {
+        try {
+            Object resource = this.abstractScriptEngineClass.getResourceAsStream(null);
+            throw new AssertionError("NullPointerException expected!");
+        }
+        catch (NullPointerException e) {
+            //This is OK OK
+        }
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.AbstractScriptEngine
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list