/hg/rhino-tests: Added new test testGetResourceAsStreamPositiveT...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Mar 4 02:41:21 PST 2014


changeset c7bc5728b4a1 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=c7bc5728b4a1
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Mar 04 11:42:00 2014 +0100

	Added new test testGetResourceAsStreamPositiveTest into ScriptEngineFactoryClassTest.


diffstat:

 ChangeLog                                            |   6 ++
 src/org/RhinoTests/ScriptEngineFactoryClassTest.java |  60 ++++++++++++++++++++
 2 files changed, 66 insertions(+), 0 deletions(-)

diffs (83 lines):

diff -r 9a2ccd2993cb -r c7bc5728b4a1 ChangeLog
--- a/ChangeLog	Mon Mar 03 13:21:10 2014 +0100
+++ b/ChangeLog	Tue Mar 04 11:42:00 2014 +0100
@@ -1,3 +1,9 @@
+2014-03-04  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/ScriptEngineFactoryClassTest.java:
+	Added new test testGetResourceAsStreamPositiveTest into
+	ScriptEngineFactoryClassTest.
+
 2014-03-03  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/CompiledScriptClassTest.java:
diff -r 9a2ccd2993cb -r c7bc5728b4a1 src/org/RhinoTests/ScriptEngineFactoryClassTest.java
--- a/src/org/RhinoTests/ScriptEngineFactoryClassTest.java	Mon Mar 03 13:21:10 2014 +0100
+++ b/src/org/RhinoTests/ScriptEngineFactoryClassTest.java	Tue Mar 04 11:42:00 2014 +0100
@@ -1787,6 +1787,66 @@
     }
 
     /**
+     * Test for method javax.script.ScriptEngineFactory.getClass().getResourceAsStreamNegativeTest()
+     */
+    protected void testGetResourceAsStreamNegativeTest() {
+        Object stream = null;
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/BaseRhinoTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/BaseRhinoTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/BindingsClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/BindingsClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/BindingsTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/BindingsTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/CompilableClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompilableClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/CompilableTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompilableTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/CompiledScriptClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompiledScriptClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/CompiledScriptTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompiledScriptTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/Constants.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/Constants.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/InvocableClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/InvocableClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/InvocableTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/InvocableTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/JavaScriptSnippets.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/JavaScriptSnippets.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/JavaScriptsTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/JavaScriptsTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptContextClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptContextClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptContextTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptContextTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptEngineClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptEngineFactoryClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineFactoryClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptEngineFactoryTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineFactoryTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptEngineManagerClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineManagerClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptEngineManagerTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineManagerTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptEngineTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptExceptionClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptExceptionClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/ScriptExceptionTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptExceptionTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/SimpleBindingsClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleBindingsClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/SimpleBindingsTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleBindingsTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/SimpleScriptContextClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleScriptContextClassTest.class\") returns null");
+        stream = this.scriptEngineFactoryClass.getResourceAsStream("/org/RhinoTests/SimpleScriptContextTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleScriptContextTest.class\") returns null");
+    }
+    /**
      * Test for instanceof operator applied to a class javax.script.ScriptEngineFactory
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list