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

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Thu Oct 24 00:16:16 PDT 2013


changeset 13dbbf4ccc49 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=13dbbf4ccc49
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Oct 24 09:20:05 2013 +0200

	Added new testGetResourcePositiveTest case into
	BindingsClassTest.


diffstat:

 ChangeLog                                 |  6 ++++++
 src/org/RhinoTests/BindingsClassTest.java |  9 +++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diffs (32 lines):

diff -r 142e3c159b8e -r 13dbbf4ccc49 ChangeLog
--- a/ChangeLog	Wed Oct 23 11:00:30 2013 +0200
+++ b/ChangeLog	Thu Oct 24 09:20:05 2013 +0200
@@ -1,3 +1,9 @@
+2013-10-24  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/BindingsClassTest.java:
+	Added new testGetResourcePositiveTest case into
+	BindingsClassTest.
+
 2013-10-23  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/ScriptContextClassTest.java:
diff -r 142e3c159b8e -r 13dbbf4ccc49 src/org/RhinoTests/BindingsClassTest.java
--- a/src/org/RhinoTests/BindingsClassTest.java	Wed Oct 23 11:00:30 2013 +0200
+++ b/src/org/RhinoTests/BindingsClassTest.java	Thu Oct 24 09:20:05 2013 +0200
@@ -1531,6 +1531,15 @@
     }
 
     /**
+     * Test for method javax.script.Bindings.getClass().getResourceAsStreamPositiveTest()
+     */
+    protected void testGetResourceAsStreamPositiveTest() {
+        Object stream;
+        stream = this.bindingsClass.getResourceAsStream("/org/RhinoTests/AbstractScriptEngineClassTest.class");
+        assertNotNull(stream, "getResourceAsStream(\"/org/RhinoTests/AbstractScriptEngineClassTest.class\") returns null");
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.Bindings
      */
     @SuppressWarnings("cast")


More information about the distro-pkg-dev mailing list