/hg/rhino-tests: Two new tests added into ScriptExceptionClassTest.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Mar 24 10:12:26 UTC 2014
changeset a925ed2c4086 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=a925ed2c4086
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Mar 24 11:13:09 2014 +0100
Two new tests added into ScriptExceptionClassTest.
diffstat:
ChangeLog | 5 +++++
src/org/RhinoTests/ScriptExceptionClassTest.java | 19 +++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
diffs (41 lines):
diff -r c4c9da65a928 -r a925ed2c4086 ChangeLog
--- a/ChangeLog Fri Mar 21 11:42:16 2014 +0100
+++ b/ChangeLog Mon Mar 24 11:13:09 2014 +0100
@@ -1,3 +1,8 @@
+2014-03-24 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/ScriptExceptionClassTest.java:
+ Two new tests added into ScriptExceptionClassTest.
+
2014-03-21 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptEngineClassTest.java:
diff -r c4c9da65a928 -r a925ed2c4086 src/org/RhinoTests/ScriptExceptionClassTest.java
--- a/src/org/RhinoTests/ScriptExceptionClassTest.java Fri Mar 21 11:42:16 2014 +0100
+++ b/src/org/RhinoTests/ScriptExceptionClassTest.java Mon Mar 24 11:13:09 2014 +0100
@@ -2145,6 +2145,25 @@
stream = this.scriptExceptionClass.getResourceAsStream("/org/RhinoTests/SimpleScriptContextTest.class");
assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleScriptContextTest.class\") returns null");
}
+
+ /**
+ * Test for method javax.script.ScriptException.getClass().getResourceAsStreamPositiveTest()
+ */
+ protected void testGetResourceAsStreamPositiveTest() {
+ Object stream;
+ stream = this.scriptExceptionClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+ assertNotNull(stream, "getResourceAsStream(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+ }
+
+ /**
+ * Test for method javax.script.ScriptException.getClass().toString()
+ */
+ protected void testToString() {
+ String asString;
+ asString = this.scriptExceptionClass.toString();
+ assertEquals("class javax.script.ScriptException", asString, "wrong toString() return value");
+ }
+
/**
* Test for instanceof operator applied to a class javax.script.ScriptException
*/
More information about the distro-pkg-dev
mailing list