/hg/rhino-tests: Added new testGetResourcePositiveTest into

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Dec 3 00:46:00 PST 2013


changeset ad08e077ab97 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=ad08e077ab97
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Dec 03 09:49:56 2013 +0100

	Added new testGetResourcePositiveTest into
	ScriptEngineManagerClassTest.java.


diffstat:

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

diffs (84 lines):

diff -r 121d4e4890da -r ad08e077ab97 ChangeLog
--- a/ChangeLog	Mon Dec 02 11:19:40 2013 +0100
+++ b/ChangeLog	Tue Dec 03 09:49:56 2013 +0100
@@ -1,3 +1,9 @@
+2013-12-03  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/ScriptEngineManagerClassTest.java:
+	Added new testGetResourcePositiveTest into
+	ScriptEngineManagerClassTest.java.
+
 2013-12-02  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/CompilableClassTest.java:
diff -r 121d4e4890da -r ad08e077ab97 src/org/RhinoTests/ScriptEngineManagerClassTest.java
--- a/src/org/RhinoTests/ScriptEngineManagerClassTest.java	Mon Dec 02 11:19:40 2013 +0100
+++ b/src/org/RhinoTests/ScriptEngineManagerClassTest.java	Tue Dec 03 09:49:56 2013 +0100
@@ -1719,6 +1719,67 @@
     }
 
     /**
+     * Test for method javax.script.ScriptEngineManager.getClass().getResourcePositiveTest()
+     */
+    protected void testGetResourcePositiveTest() {
+        Object resource;
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/BaseRhinoTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/BaseRhinoTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/BindingsClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/BindingsClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/BindingsTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/BindingsTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/CompilableClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompilableClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/CompilableTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompilableTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/CompiledScriptClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompiledScriptClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/CompiledScriptTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompiledScriptTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/Constants.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/Constants.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/InvocableClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/InvocableClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/InvocableTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/InvocableTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/JavaScriptSnippets.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/JavaScriptSnippets.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/JavaScriptsTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/JavaScriptsTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptContextClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptContextClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptContextTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptContextTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptEngineClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptEngineFactoryClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineFactoryClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptEngineFactoryTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineFactoryTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptEngineManagerClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineManagerClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptEngineManagerTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineManagerTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptEngineTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptExceptionClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptExceptionClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/ScriptExceptionTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptExceptionTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/SimpleBindingsClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleBindingsClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/SimpleBindingsTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleBindingsTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/SimpleScriptContextClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleScriptContextClassTest.class\") returns null");
+        resource = this.scriptEngineManagerClass.getResource("/org/RhinoTests/SimpleScriptContextTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleScriptContextTest.class\") returns null");
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.ScriptEngineManager
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list