/hg/rhino-tests: Added new testGetResourcePositiveTest into
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Nov 27 00:32:06 PST 2013
changeset 194c886a7975 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=194c886a7975
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Nov 27 09:36:03 2013 +0100
Added new testGetResourcePositiveTest into
AbstractScriptEngineClassTest.java.
diffstat:
ChangeLog | 6 ++++++
src/org/RhinoTests/AbstractScriptEngineClassTest.java | 9 +++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diffs (32 lines):
diff -r 2c30f6a7c285 -r 194c886a7975 ChangeLog
--- a/ChangeLog Tue Nov 26 10:23:20 2013 +0100
+++ b/ChangeLog Wed Nov 27 09:36:03 2013 +0100
@@ -1,3 +1,9 @@
+2013-11-27 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+ Added new testGetResourcePositiveTest into
+ AbstractScriptEngineClassTest.java.
+
2013-11-26 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/ScriptContextClassTest.java:
diff -r 2c30f6a7c285 -r 194c886a7975 src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java Tue Nov 26 10:23:20 2013 +0100
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java Wed Nov 27 09:36:03 2013 +0100
@@ -1850,6 +1850,15 @@
}
/**
+ * Test for method javax.script.AbstractScriptEngine.getClass().getResourceAsStreamPositiveTest()
+ */
+ protected void testGetResourceAsStreamPositiveTest() {
+ Object stream;
+ stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+ assertNotNull(stream, "getResourceAsStream(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+ }
+
+ /**
* Test for instanceof operator applied to a class javax.script.AbstractScriptEngine
*/
@SuppressWarnings("cast")
More information about the distro-pkg-dev
mailing list