/hg/rhino-tests: Two new tests added into CompiledScriptClassTes...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Mar 17 10:54:07 UTC 2014
changeset e21fefd231df in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=e21fefd231df
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Mar 17 11:54:49 2014 +0100
Two new tests added into CompiledScriptClassTest test suite.
diffstat:
ChangeLog | 5 +++++
src/org/RhinoTests/CompiledScriptClassTest.java | 18 ++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
diffs (40 lines):
diff -r 39b90cb1bd47 -r e21fefd231df ChangeLog
--- a/ChangeLog Fri Mar 14 13:14:58 2014 +0100
+++ b/ChangeLog Mon Mar 17 11:54:49 2014 +0100
@@ -1,3 +1,8 @@
+2014-03-17 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/CompiledScriptClassTest.java:
+ Two new tests added into CompiledScriptClassTest test suite.
+
2014-03-14 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptContextClassTest.java:
diff -r 39b90cb1bd47 -r e21fefd231df src/org/RhinoTests/CompiledScriptClassTest.java
--- a/src/org/RhinoTests/CompiledScriptClassTest.java Fri Mar 14 13:14:58 2014 +0100
+++ b/src/org/RhinoTests/CompiledScriptClassTest.java Mon Mar 17 11:54:49 2014 +0100
@@ -2066,6 +2066,24 @@
}
/**
+ * Test for method javax.script.CompiledScript.getClass().getResourceAsStreamPositiveTest()
+ */
+ protected void testGetResourceAsStreamPositiveTest() {
+ Object stream;
+ stream = this.compiledScriptClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+ assertNotNull(stream, "getResourceAsStream(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+ }
+
+ /**
+ * Test for method javax.script.CompiledScript.getClass().toString()
+ */
+ protected void testToString() {
+ String asString;
+ asString = this.compiledScriptClass.toString();
+ assertEquals("class javax.script.CompiledScript", asString, "wrong toString() return value");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.CompiledScript
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list