/hg/rhino-tests: Four new tests added to the test suite SimpleSc...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Fri Jan 18 01:28:23 PST 2013


changeset fa939752e8db in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=fa939752e8db
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jan 18 10:31:28 2013 +0100

	Four new tests added to the test suite SimpleScriptContextClassTest.


diffstat:

 ChangeLog                                            |   5 ++
 src/org/RhinoTests/SimpleScriptContextClassTest.java |  34 ++++++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)

diffs (56 lines):

diff -r 431a38044e6f -r fa939752e8db ChangeLog
--- a/ChangeLog	Thu Jan 17 11:00:38 2013 +0100
+++ b/ChangeLog	Fri Jan 18 10:31:28 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-18  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/SimpleScriptContextClassTest.java:
+	Four new tests added to the test suite SimpleScriptContextClassTest.
+
 2013-01-17  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
diff -r 431a38044e6f -r fa939752e8db src/org/RhinoTests/SimpleScriptContextClassTest.java
--- a/src/org/RhinoTests/SimpleScriptContextClassTest.java	Thu Jan 17 11:00:38 2013 +0100
+++ b/src/org/RhinoTests/SimpleScriptContextClassTest.java	Fri Jan 18 10:31:28 2013 +0100
@@ -623,6 +623,40 @@
     }
 
     /**
+     * Test for method javax.script.SimpleScriptContext.getClass().getComponentType()
+     */
+    protected void testGetComponentType() {
+        Class<?> cls = this.simpleScriptContextClass.getComponentType();
+        assertNull(cls, "getComponentType() should returns null");
+    }
+
+    /**
+     * Test for method javax.script.SimpleScriptContext.getClass().getClasses()
+     */
+    protected void testGetClasses() {
+        Class<?>[] cls = this.simpleScriptContextClass.getClasses();
+        assertNotNull(cls, "getClasses() returns null");
+        assertEquals(cls.length, 0, "getClasses() returns wrong value!");
+    }
+
+    /**
+     * Test for method javax.script.SimpleScriptContext.getClass().getDeclaredClasses()
+     */
+    protected void testGetDeclaredClasses() {
+        Class<?>[] cls = this.simpleScriptContextClass.getDeclaredClasses();
+        assertNotNull(cls, "getDeclaredClasses() returns null");
+        assertEquals(cls.length, 0, "getDeclaredClasses() returns wrong value!");
+    }
+
+    /**
+     * Test for method javax.script.SimpleScriptContext.getClass().getDeclaringClass()
+     */
+    protected void testGetDeclaringClass() {
+        Class<?> cls = this.simpleScriptContextClass.getDeclaringClass();
+        assertNull(cls, "getDeclaringClass() does not return null");
+    }
+
+    /**
      * Test for method javax.script.SimpleScriptContext.getClass().getEnclosingClass()
      */
     protected void testGetEnclosingClass() {



More information about the distro-pkg-dev mailing list