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

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Wed Oct 16 00:18:14 PDT 2013


changeset a8242550bb5c in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=a8242550bb5c
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Oct 16 09:21:59 2013 +0200

	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 c1cc99b637bf -r a8242550bb5c ChangeLog
--- a/ChangeLog	Tue Oct 15 11:12:28 2013 +0200
+++ b/ChangeLog	Wed Oct 16 09:21:59 2013 +0200
@@ -1,3 +1,9 @@
+2013-10-16  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/BindingsClassTest.java:
+	Added new testGetResourceNPETest case into
+	BindingsClassTest.
+
 2013-10-15  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
diff -r c1cc99b637bf -r a8242550bb5c src/org/RhinoTests/BindingsClassTest.java
--- a/src/org/RhinoTests/BindingsClassTest.java	Tue Oct 15 11:12:28 2013 +0200
+++ b/src/org/RhinoTests/BindingsClassTest.java	Wed Oct 16 09:21:59 2013 +0200
@@ -1510,6 +1510,19 @@
     }
 
     /**
+     * Test for method javax.script.Bindings.getClass().getResourceNPETest()
+     */
+    protected void testGetResourceNPETest() {
+        try {
+            Object resource = this.bindingsClass.getResource(null);
+            throw new AssertionError("NullPointerException expected!");
+        }
+        catch (NullPointerException e) {
+            //This is OK OK
+        }
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.Bindings
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list