/hg/rhino-tests: Added new testGetResourcePositiveTest case into

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Nov 19 05:30:50 PST 2013


changeset b703721b0a67 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=b703721b0a67
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Nov 19 14:34:47 2013 +0100

	Added new testGetResourcePositiveTest case into
	AbstractScriptEngineClassTest.java.


diffstat:

 ChangeLog                                             |   6 +
 src/org/RhinoTests/AbstractScriptEngineClassTest.java |  61 +++++++++++++++++++
 2 files changed, 67 insertions(+), 0 deletions(-)

diffs (84 lines):

diff -r d4ce8969d3f8 -r b703721b0a67 ChangeLog
--- a/ChangeLog	Mon Nov 18 09:32:27 2013 +0100
+++ b/ChangeLog	Tue Nov 19 14:34:47 2013 +0100
@@ -1,3 +1,9 @@
+2013-11-19  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+	Added new testGetResourcePositiveTest case into
+	AbstractScriptEngineClassTest.java.
+
 2013-11-18  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/ScriptEngineManagerClassTest.java:
diff -r d4ce8969d3f8 -r b703721b0a67 src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Mon Nov 18 09:32:27 2013 +0100
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Tue Nov 19 14:34:47 2013 +0100
@@ -1789,6 +1789,67 @@
     }
 
     /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getResourceAsStreamNegativeTest()
+     */
+    protected void testGetResourceAsStreamNegativeTest() {
+        Object stream = null;
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/BaseRhinoTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/BaseRhinoTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/BindingsClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/BindingsClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/BindingsTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/BindingsTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/CompilableClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompilableClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/CompilableTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompilableTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/CompiledScriptClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompiledScriptClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/CompiledScriptTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/CompiledScriptTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/Constants.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/Constants.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/InvocableClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/InvocableClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/InvocableTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/InvocableTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/JavaScriptSnippets.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/JavaScriptSnippets.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/JavaScriptsTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/JavaScriptsTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptContextClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptContextClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptContextTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptContextTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptEngineClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptEngineFactoryClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineFactoryClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptEngineFactoryTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineFactoryTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptEngineManagerClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineManagerClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptEngineManagerTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineManagerTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptEngineTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptEngineTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptExceptionClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptExceptionClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/ScriptExceptionTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/ScriptExceptionTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/SimpleBindingsClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleBindingsClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/SimpleBindingsTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleBindingsTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/SimpleScriptContextClassTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleScriptContextClassTest.class\") returns null");
+        stream = this.abstractScriptEngineClass.getResourceAsStream("/org/RhinoTests/SimpleScriptContextTest.class");
+        assertNotNull(stream, "getAsStreamResource(\"/org/RhinoTests/SimpleScriptContextTest.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