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