Mercurial > hg > rhino-tests
changeset 265:a3744343ed0d draft
Added new testGetResourceNegativeTest case into
SimpleScriptContextClassTest.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Thu, 07 Nov 2013 09:31:31 +0100 |
parents | bf9c54aa5bb9 |
children | 084069106e7f |
files | ChangeLog src/org/RhinoTests/SimpleScriptContextClassTest.java |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Nov 06 10:42:08 2013 +0100 +++ b/ChangeLog Thu Nov 07 09:31:31 2013 +0100 @@ -1,3 +1,9 @@ +2013-11-07 Pavel Tisnovsky <ptisnovs@redhat.com> + + * src/org/RhinoTests/SimpleScriptContextClassTest.java: + Added new testGetResourceNegativeTest case into + SimpleScriptContextClassTest. + 2013-11-06 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/RhinoTests/AbstractScriptEngineClassTest.java:
--- a/src/org/RhinoTests/SimpleScriptContextClassTest.java Wed Nov 06 10:42:08 2013 +0100 +++ b/src/org/RhinoTests/SimpleScriptContextClassTest.java Thu Nov 07 09:31:31 2013 +0100 @@ -1723,6 +1723,14 @@ } /** + * Test for method javax.script.SimpleScriptContext.getClass().getResourceNegativeTest() + */ + protected void testGetResourceNegativeTest() { + Object resource = this.simpleScriptContextClass.getResource("unknown"); + assertNull(resource, "getResource() does not return null"); + } + + /** * Test for instanceof operator applied to a class javax.script.SimpleScriptContext */ @SuppressWarnings("cast")