/hg/rhino-tests: Added new testGetResourceNegativeTest case into...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Dec 4 00:31:31 PST 2013
changeset ce6191c20cb6 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=ce6191c20cb6
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Dec 04 09:35:29 2013 +0100
Added new testGetResourceNegativeTest case into SimpleBindingsClassTest.
diffstat:
ChangeLog | 6 ++++++
src/org/RhinoTests/SimpleBindingsClassTest.java | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diffs (31 lines):
diff -r ad08e077ab97 -r ce6191c20cb6 ChangeLog
--- a/ChangeLog Tue Dec 03 09:49:56 2013 +0100
+++ b/ChangeLog Wed Dec 04 09:35:29 2013 +0100
@@ -1,3 +1,9 @@
+2013-12-04 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/SimpleBindingsClassTest.java:
+ Added new testGetResourceNegativeTest case into
+ SimpleBindingsClassTest.
+
2013-12-03 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptEngineManagerClassTest.java:
diff -r ad08e077ab97 -r ce6191c20cb6 src/org/RhinoTests/SimpleBindingsClassTest.java
--- a/src/org/RhinoTests/SimpleBindingsClassTest.java Tue Dec 03 09:49:56 2013 +0100
+++ b/src/org/RhinoTests/SimpleBindingsClassTest.java Wed Dec 04 09:35:29 2013 +0100
@@ -1683,6 +1683,14 @@
}
/**
+ * Test for method javax.script.SimpleBindings.getClass().getResourceNegativeTest()
+ */
+ protected void testGetResourceNegativeTest() {
+ Object resource = this.simpleBindingsClass.getResource("unknown");
+ assertNull(resource, "getResource() does not return null");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.SimpleBindings
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list