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

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Nov 4 00:26:50 PST 2013


changeset 328e46cec04a in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=328e46cec04a
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Nov 04 09:30:38 2013 +0100

	Added new testGetResourcePositiveTest case into
	BindingsClassTest.


diffstat:

 ChangeLog                                 |  10 ++++-
 src/org/RhinoTests/BindingsClassTest.java |  61 +++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+), 2 deletions(-)

diffs (95 lines):

diff -r 1ac6ba772ad8 -r 328e46cec04a ChangeLog
--- a/ChangeLog	Fri Oct 25 11:05:15 2013 +0200
+++ b/ChangeLog	Mon Nov 04 09:30:38 2013 +0100
@@ -1,3 +1,9 @@
+2013-11-04  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/BindingsClassTest.java:
+	Added new testGetResourcePositiveTest case into
+	BindingsClassTest.
+
 2013-10-25  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/InvocableClassTest.java:
@@ -7,8 +13,8 @@
 2013-10-24  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/BindingsClassTest.java:
-	Added new testGetResourcePositiveTest case into
-	BindingsClassTest.
+	Added new testGetResourceAsStreamPositiveTest case
+	into BindingsClassTest.
 
 2013-10-23  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
diff -r 1ac6ba772ad8 -r 328e46cec04a src/org/RhinoTests/BindingsClassTest.java
--- a/src/org/RhinoTests/BindingsClassTest.java	Fri Oct 25 11:05:15 2013 +0200
+++ b/src/org/RhinoTests/BindingsClassTest.java	Mon Nov 04 09:30:38 2013 +0100
@@ -1531,6 +1531,67 @@
     }
 
     /**
+     * Test for method javax.script.Bindings.getClass().getResourcePositiveTest()
+     */
+    protected void testGetResourcePositiveTest() {
+        Object resource;
+        resource = this.bindingsClass.getResource("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/BaseRhinoTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/BaseRhinoTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/BindingsClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/BindingsClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/BindingsTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/BindingsTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/CompilableClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompilableClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/CompilableTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompilableTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/CompiledScriptClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompiledScriptClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/CompiledScriptTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/CompiledScriptTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/Constants.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/Constants.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/InvocableClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/InvocableClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/InvocableTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/InvocableTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/JavaScriptSnippets.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/JavaScriptSnippets.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/JavaScriptsTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/JavaScriptsTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptContextClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptContextClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptContextTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptContextTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptEngineClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptEngineFactoryClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineFactoryClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptEngineFactoryTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineFactoryTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptEngineManagerClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineManagerClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptEngineManagerTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineManagerTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptEngineTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptEngineTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptExceptionClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptExceptionClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/ScriptExceptionTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/ScriptExceptionTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/SimpleBindingsClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleBindingsClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/SimpleBindingsTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleBindingsTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/SimpleScriptContextClassTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleScriptContextClassTest.class\") returns null");
+        resource = this.bindingsClass.getResource("/org/RhinoTests/SimpleScriptContextTest.class");
+        assertNotNull(resource, "getResource(\"/org/RhinoTests/SimpleScriptContextTest.class\") returns null");
+    }
+
+    /**
      * Test for method javax.script.Bindings.getClass().getResourceAsStreamPositiveTest()
      */
     protected void testGetResourceAsStreamPositiveTest() {


More information about the distro-pkg-dev mailing list