/hg/rhino-tests: Added new testGetResourceNPETest case into
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Oct 15 02:08:47 PDT 2013
changeset c1cc99b637bf in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=c1cc99b637bf
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Oct 15 11:12:28 2013 +0200
Added new testGetResourceNPETest case into
AbstractScriptEngineClassTest.
diffstat:
ChangeLog | 6 ++++++
src/org/RhinoTests/AbstractScriptEngineClassTest.java | 13 +++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
diffs (36 lines):
diff -r 91022c9f48b3 -r c1cc99b637bf ChangeLog
--- a/ChangeLog Mon Oct 14 11:51:07 2013 +0200
+++ b/ChangeLog Tue Oct 15 11:12:28 2013 +0200
@@ -1,3 +1,9 @@
+2013-10-15 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+ Added new testGetResourceNPETest case into
+ AbstractScriptEngineClassTest.
+
2013-10-14 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptEngineManagerClassTest.java:
diff -r 91022c9f48b3 -r c1cc99b637bf src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java Mon Oct 14 11:51:07 2013 +0200
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java Tue Oct 15 11:12:28 2013 +0200
@@ -1694,6 +1694,19 @@
}
/**
+ * Test for method javax.script.AbstractScriptEngine.getClass().getResourceNPETest()
+ */
+ protected void testGetResourceNPETest() {
+ try {
+ Object resource = this.abstractScriptEngineClass.getResource(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