/hg/rhino-tests: New tests added to the test suite SimpleScriptC...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Jan 15 02:49:51 PST 2013


changeset 0319b6a1e77f in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=0319b6a1e77f
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jan 15 11:52:58 2013 +0100

	New tests added to the test suite SimpleScriptContextClassTest.


diffstat:

 ChangeLog                                            |   7 +++++-
 src/org/RhinoTests/SimpleScriptContextClassTest.java |  24 ++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)

diffs (48 lines):

diff -r cf26ea1499fc -r 0319b6a1e77f ChangeLog
--- a/ChangeLog	Mon Jan 14 10:27:29 2013 +0100
+++ b/ChangeLog	Tue Jan 15 11:52:58 2013 +0100
@@ -1,4 +1,9 @@
-2013-01-12  Pavel Tisnovsky  <ptisnovs at redhat.com>
+2013-01-15  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/SimpleScriptContextClassTest.java:
+	New tests added to the test suite SimpleScriptContextClassTest.
+
+2013-01-14  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
 	Added two new tests: getMethod() and getDeclaredMethod().
diff -r cf26ea1499fc -r 0319b6a1e77f src/org/RhinoTests/SimpleScriptContextClassTest.java
--- a/src/org/RhinoTests/SimpleScriptContextClassTest.java	Mon Jan 14 10:27:29 2013 +0100
+++ b/src/org/RhinoTests/SimpleScriptContextClassTest.java	Tue Jan 15 11:52:58 2013 +0100
@@ -623,6 +623,30 @@
     }
 
     /**
+     * Test for method javax.script.SimpleScriptContext.getClass().getEnclosingClass()
+     */
+    protected void testGetEnclosingClass() {
+        Class<?> cls = this.simpleScriptContextClass.getEnclosingClass();
+        assertNull(cls, "getEnclosingClass() does not return null");
+    }
+
+    /**
+     * Test for method javax.script.SimpleScriptContext.getClass().getEnclosingConstructor()
+     */
+    protected void testGetEnclosingConstructor() {
+        Constructor<?> cons = this.simpleScriptContextClass.getEnclosingConstructor();
+        assertNull(cons, "getEnclosingConstructor() does not return null");
+    }
+
+    /**
+     * Test for method javax.script.SimpleScriptContext.getClass().getEnclosingMethod()
+     */
+    protected void testGetEnclosingMethod() {
+        Method m = this.simpleScriptContextClass.getEnclosingMethod();
+        assertNull(m, "getEnclosingMethod() does not return null");
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.SimpleScriptContext
      */
     @SuppressWarnings("cast")



More information about the distro-pkg-dev mailing list