/hg/rhino-tests: Added two new tests into ScriptContextClassTest.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Mar 26 11:24:57 UTC 2014
changeset d9b4a5a38938 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=d9b4a5a38938
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Mar 26 12:25:39 2014 +0100
Added two new tests into ScriptContextClassTest.
diffstat:
ChangeLog | 5 +++++
src/org/RhinoTests/ScriptContextClassTest.java | 18 ++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
diffs (40 lines):
diff -r 4aec4c1b2a37 -r d9b4a5a38938 ChangeLog
--- a/ChangeLog Tue Mar 25 09:43:42 2014 +0100
+++ b/ChangeLog Wed Mar 26 12:25:39 2014 +0100
@@ -1,3 +1,8 @@
+2014-03-26 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/ScriptContextClassTest.java:
+ Added two new tests into ScriptContextClassTest.
+
2014-03-25 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptEngineFactoryClassTest.java:
diff -r 4aec4c1b2a37 -r d9b4a5a38938 src/org/RhinoTests/ScriptContextClassTest.java
--- a/src/org/RhinoTests/ScriptContextClassTest.java Tue Mar 25 09:43:42 2014 +0100
+++ b/src/org/RhinoTests/ScriptContextClassTest.java Wed Mar 26 12:25:39 2014 +0100
@@ -2063,6 +2063,24 @@
}
/**
+ * Test for method javax.script.ScriptContext.getClass().getResourceAsStreamPositiveTest()
+ */
+ protected void testGetResourceAsStreamPositiveTest() {
+ Object stream;
+ stream = this.scriptContextClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+ assertNotNull(stream, "getResourceAsStream(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+ }
+
+ /**
+ * Test for method javax.script.ScriptContext.getClass().toString()
+ */
+ protected void testToString() {
+ String asString;
+ asString = this.scriptContextClass.toString();
+ assertEquals("interface javax.script.ScriptContext", asString, "wrong toString() return value");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.ScriptContext
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list