/hg/rhino-tests: Added new testGetResourceNPETest and testGetRes...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Nov 25 00:33:57 PST 2013
changeset 52f3b6653ccd in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=52f3b6653ccd
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Nov 25 09:37:50 2013 +0100
Added new testGetResourceNPETest and testGetResourceNegativeTest cases into SimpleBindingsClassTest.java.
diffstat:
ChangeLog | 7 +++++++
src/org/RhinoTests/SimpleBindingsClassTest.java | 13 +++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
diffs (37 lines):
diff -r d7a085f139ba -r 52f3b6653ccd ChangeLog
--- a/ChangeLog Fri Nov 22 09:11:17 2013 +0100
+++ b/ChangeLog Mon Nov 25 09:37:50 2013 +0100
@@ -1,3 +1,10 @@
+2013-11-25 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/SimpleBindingsClassTest.java:
+ Added new testGetResourceNPETest and
+ testGetResourceNegativeTest cases into
+ SimpleBindingsClassTest.java.
+
2013-11-22 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptEngineClassTest.java:
diff -r d7a085f139ba -r 52f3b6653ccd src/org/RhinoTests/SimpleBindingsClassTest.java
--- a/src/org/RhinoTests/SimpleBindingsClassTest.java Fri Nov 22 09:11:17 2013 +0100
+++ b/src/org/RhinoTests/SimpleBindingsClassTest.java Mon Nov 25 09:37:50 2013 +0100
@@ -1670,6 +1670,19 @@
}
/**
+ * Test for method javax.script.SimpleBindings.getClass().getResourceNPETest()
+ */
+ protected void testGetResourceNPETest() {
+ try {
+ Object resource = this.simpleBindingsClass.getResource(null);
+ throw new AssertionError("NullPointerException expected!");
+ }
+ catch (NullPointerException e) {
+ //This is OK OK
+ }
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.SimpleBindings
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list