/hg/rhino-tests: Added new testGetResourceNegativeTest case into...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Dec 2 02:15:45 PST 2013
changeset 121d4e4890da in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=121d4e4890da
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Dec 02 11:19:40 2013 +0100
Added new testGetResourceNegativeTest case into CompilableClassTest.
diffstat:
ChangeLog | 6 ++++++
src/org/RhinoTests/CompilableClassTest.java | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diffs (31 lines):
diff -r 8c969309d264 -r 121d4e4890da ChangeLog
--- a/ChangeLog Thu Nov 28 10:21:31 2013 +0100
+++ b/ChangeLog Mon Dec 02 11:19:40 2013 +0100
@@ -1,3 +1,9 @@
+2013-12-02 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/CompilableClassTest.java:
+ Added new testGetResourceNegativeTest case into
+ CompilableClassTest.
+
2013-11-28 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptEngineManagerClassTest.java:
diff -r 8c969309d264 -r 121d4e4890da src/org/RhinoTests/CompilableClassTest.java
--- a/src/org/RhinoTests/CompilableClassTest.java Thu Nov 28 10:21:31 2013 +0100
+++ b/src/org/RhinoTests/CompilableClassTest.java Mon Dec 02 11:19:40 2013 +0100
@@ -1426,6 +1426,14 @@
}
/**
+ * Test for method javax.script.Compilable.getClass().getResourceNegativeTest()
+ */
+ protected void testGetResourceNegativeTest() {
+ Object resource = this.compilableClass.getResource("unknown");
+ assertNull(resource, "getResource() does not return null");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.Compilable
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list