/hg/rhino-tests: Added new testGetResourceNegativeTest case into
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Oct 18 01:29:06 PDT 2013
changeset c476f3ce848f in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=c476f3ce848f
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Oct 18 10:32:51 2013 +0200
Added new testGetResourceNegativeTest case into
AbstractScriptEngineClassTest.
diffstat:
ChangeLog | 6 ++++++
src/org/RhinoTests/AbstractScriptEngineClassTest.java | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diffs (31 lines):
diff -r ccd63d49fe53 -r c476f3ce848f ChangeLog
--- a/ChangeLog Thu Oct 17 13:30:38 2013 +0200
+++ b/ChangeLog Fri Oct 18 10:32:51 2013 +0200
@@ -1,3 +1,9 @@
+2013-10-18 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+ Added new testGetResourceNegativeTest case into
+ AbstractScriptEngineClassTest.
+
2013-10-17 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/CompilableClassTest.java:
diff -r ccd63d49fe53 -r c476f3ce848f src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java Thu Oct 17 13:30:38 2013 +0200
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java Fri Oct 18 10:32:51 2013 +0200
@@ -1707,6 +1707,14 @@
}
/**
+ * Test for method javax.script.AbstractScriptEngine.getClass().getResourceNegativeTest()
+ */
+ protected void testGetResourceNegativeTest() {
+ Object resource = this.abstractScriptEngineClass.getResource("unknown");
+ assertNull(resource, "getResource() does not return null");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.AbstractScriptEngine
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list