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

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Thu Nov 28 01:17:34 PST 2013


changeset 8c969309d264 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=8c969309d264
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Nov 28 10:21:31 2013 +0100

	Added new testGetResourceNegativeTest case into
	ScriptEngineManagerClassTest.


diffstat:

 ChangeLog                                            |  6 ++++++
 src/org/RhinoTests/ScriptEngineManagerClassTest.java |  8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diffs (31 lines):

diff -r 194c886a7975 -r 8c969309d264 ChangeLog
--- a/ChangeLog	Wed Nov 27 09:36:03 2013 +0100
+++ b/ChangeLog	Thu Nov 28 10:21:31 2013 +0100
@@ -1,3 +1,9 @@
+2013-11-28  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/ScriptEngineManagerClassTest.java:
+	Added new testGetResourceNegativeTest case into
+	ScriptEngineManagerClassTest.
+
 2013-11-27  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
diff -r 194c886a7975 -r 8c969309d264 src/org/RhinoTests/ScriptEngineManagerClassTest.java
--- a/src/org/RhinoTests/ScriptEngineManagerClassTest.java	Wed Nov 27 09:36:03 2013 +0100
+++ b/src/org/RhinoTests/ScriptEngineManagerClassTest.java	Thu Nov 28 10:21:31 2013 +0100
@@ -1711,6 +1711,14 @@
     }
 
     /**
+     * Test for method javax.script.ScriptEngineManager.getClass().getResourceNegativeTest()
+     */
+    protected void testGetResourceNegativeTest() {
+        Object resource = this.scriptEngineManagerClass.getResource("unknown");
+        assertNull(resource, "getResource() does not return null");
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.ScriptEngineManager
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list