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

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Nov 11 00:28:58 PST 2013


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

	Added new testGetResourceNPETest case into BindingsClassTest.


diffstat:

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

diffs (36 lines):

diff -r 084069106e7f -r 530ed77655ad ChangeLog
--- a/ChangeLog	Fri Nov 08 09:54:31 2013 +0100
+++ b/ChangeLog	Mon Nov 11 09:32:48 2013 +0100
@@ -1,3 +1,9 @@
+2013-11-11  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/BindingsClassTest.java:
+	Added new testGetResourceNPETest case into
+	BindingsClassTest.
+
 2013-11-08  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/InvocableClassTest.java:
diff -r 084069106e7f -r 530ed77655ad src/org/RhinoTests/BindingsClassTest.java
--- a/src/org/RhinoTests/BindingsClassTest.java	Fri Nov 08 09:54:31 2013 +0100
+++ b/src/org/RhinoTests/BindingsClassTest.java	Mon Nov 11 09:32:48 2013 +0100
@@ -1592,6 +1592,19 @@
     }
 
     /**
+     * Test for method javax.script.Bindings.getClass().getResourceAsStreamNPETest()
+     */
+    protected void testGetResourceAsStreamNPETest() {
+        try {
+            Object resource = this.bindingsClass.getResourceAsStream(null);
+            throw new AssertionError("NullPointerException expected!");
+        }
+        catch (NullPointerException e) {
+            //This is OK OK
+        }
+    }
+
+    /**
      * Test for method javax.script.Bindings.getClass().getResourceAsStreamPositiveTest()
      */
     protected void testGetResourceAsStreamPositiveTest() {


More information about the distro-pkg-dev mailing list