/hg/rhino-tests: Added new tests testGetResourceAsStreamPositiov...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Fri Mar 7 12:20:32 UTC 2014


changeset 482d9f98ee40 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=482d9f98ee40
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Mar 07 13:21:16 2014 +0100

	Added new tests testGetResourceAsStreamPositioveTest and
	toStringTest into SimpleBindingsClassTest.


diffstat:

 ChangeLog                                       |   6 ++++++
 src/org/RhinoTests/SimpleBindingsClassTest.java |  18 ++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diffs (41 lines):

diff -r c7bc5728b4a1 -r 482d9f98ee40 ChangeLog
--- a/ChangeLog	Tue Mar 04 11:42:00 2014 +0100
+++ b/ChangeLog	Fri Mar 07 13:21:16 2014 +0100
@@ -1,3 +1,9 @@
+2014-03-07  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/SimpleBindingsClassTest.java:
+	Added new tests testGetResourceAsStreamPositioveTest and
+	toStringTest into SimpleBindingsClassTest.
+
 2014-03-04  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/ScriptEngineFactoryClassTest.java:
diff -r c7bc5728b4a1 -r 482d9f98ee40 src/org/RhinoTests/SimpleBindingsClassTest.java
--- a/src/org/RhinoTests/SimpleBindingsClassTest.java	Tue Mar 04 11:42:00 2014 +0100
+++ b/src/org/RhinoTests/SimpleBindingsClassTest.java	Fri Mar 07 13:21:16 2014 +0100
@@ -2154,6 +2154,24 @@
     }
 
     /**
+     * Test for method javax.script.SimpleBindings.getClass().getResourceAsStreamPositiveTest()
+     */
+    protected void testGetResourceAsStreamPositiveTest() {
+        Object stream;
+        stream = this.simpleBindingsClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+        assertNotNull(stream, "getResourceAsStream(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+    }
+
+    /**
+     * Test for method javax.script.SimpleBindings.getClass().toString()
+     */
+    protected void testToString() {
+        String asString;
+        asString = this.simpleBindingsClass.toString();
+        assertEquals("class javax.script.SimpleBindings", asString, "wrong toString() return value");
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.SimpleBindings
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list