Mercurial > hg > rhino-tests
changeset 255:ccd63d49fe53 draft
Added new testGetResourceNPETest case into
CompilableClassTest.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Thu, 17 Oct 2013 13:30:38 +0200 |
parents | a8242550bb5c |
children | c476f3ce848f |
files | ChangeLog src/org/RhinoTests/CompilableClassTest.java |
diffstat | 2 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Oct 16 09:21:59 2013 +0200 +++ b/ChangeLog Thu Oct 17 13:30:38 2013 +0200 @@ -1,3 +1,9 @@ +2013-10-17 Pavel Tisnovsky <ptisnovs@redhat.com> + + * src/org/RhinoTests/CompilableClassTest.java: + Added new testGetResourceNPETest case into + CompilableClassTest. + 2013-10-16 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/RhinoTests/BindingsClassTest.java:
--- a/src/org/RhinoTests/CompilableClassTest.java Wed Oct 16 09:21:59 2013 +0200 +++ b/src/org/RhinoTests/CompilableClassTest.java Thu Oct 17 13:30:38 2013 +0200 @@ -1413,6 +1413,19 @@ } /** + * Test for method javax.script.Compilable.getClass().getResourceNPETest() + */ + protected void testGetResourceNPETest() { + try { + Object resource = this.compilableClass.getResource(null); + throw new AssertionError("NullPointerException expected!"); + } + catch (NullPointerException e) { + //This is OK OK + } + } + + /** * Test for instanceof operator applied to a class javax.script.Compilable */ @SuppressWarnings("cast")