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

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Thu Jan 17 01:57:32 PST 2013


changeset 431a38044e6f in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=431a38044e6f
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Jan 17 11:00:38 2013 +0100

	New tests added to the test suite AbstractScriptEngineClassTest.


diffstat:

 ChangeLog                                             |   5 +
 src/org/RhinoTests/AbstractScriptEngineClassTest.java |  81 +++++++++++++++++++
 2 files changed, 86 insertions(+), 0 deletions(-)

diffs (103 lines):

diff -r 075b8d6e5fb1 -r 431a38044e6f ChangeLog
--- a/ChangeLog	Wed Jan 16 13:33:30 2013 +0100
+++ b/ChangeLog	Thu Jan 17 11:00:38 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-17  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+	New tests added to the test suite AbstractScriptEngineClassTest.
+
 2013-01-16  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/BindingsClassTest.java:
diff -r 075b8d6e5fb1 -r 431a38044e6f src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Wed Jan 16 13:33:30 2013 +0100
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Thu Jan 17 11:00:38 2013 +0100
@@ -856,6 +856,87 @@
     }
 
     /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getAnnotation()
+     */
+    protected void testGetAnnotation() {
+        Annotation annotation;
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.annotation.Annotation.class);
+        assertNull(annotation, "annotation java.lang.annotation.Annotation should not be returned");
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.annotation.Documented.class);
+        assertNull(annotation, "annotation java.lang.annotation.Documented should not be returned");
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.annotation.Inherited.class);
+        assertNull(annotation, "annotation java.lang.annotation.Inherited should not be returned");
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.annotation.Retention.class);
+        assertNull(annotation, "annotation java.lang.annotation.Retention should not be returned");
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.annotation.Target.class);
+        assertNull(annotation, "annotation java.lang.annotation.Target should not be returned");
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.Deprecated.class);
+        assertNull(annotation, "annotation java.lang.Deprecated should not be returned");
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.Override.class);
+        assertNull(annotation, "annotation java.lang.Override should not be returned");
+        annotation = this.abstractScriptEngineClass.getAnnotation(java.lang.SuppressWarnings.class);
+        assertNull(annotation, "annotation java.lang.SuppressWarnings should not be returned");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getComponentType()
+     */
+    protected void testGetComponentType() {
+        Class<?> cls = this.abstractScriptEngineClass.getComponentType();
+        assertNull(cls, "getComponentType() should returns null");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getClasses()
+     */
+    protected void testGetClasses() {
+        Class<?>[] cls = this.abstractScriptEngineClass.getClasses();
+        assertNotNull(cls, "getClasses() returns null");
+        assertEquals(cls.length, 0, "getClasses() returns wrong value!");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getDeclaredClasses()
+     */
+    protected void testGetDeclaredClasses() {
+        Class<?>[] cls = this.abstractScriptEngineClass.getDeclaredClasses();
+        assertNotNull(cls, "getDeclaredClasses() returns null");
+        assertEquals(cls.length, 0, "getDeclaredClasses() returns wrong value!");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getDeclaringClass()
+     */
+    protected void testGetDeclaringClass() {
+        Class<?> cls = this.abstractScriptEngineClass.getDeclaringClass();
+        assertNull(cls, "getDeclaringClass() does not return null");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getEnclosingClass()
+     */
+    protected void testGetEnclosingClass() {
+        Class<?> cls = this.abstractScriptEngineClass.getEnclosingClass();
+        assertNull(cls, "getEnclosingClass() does not return null");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getEnclosingConstructor()
+     */
+    protected void testGetEnclosingConstructor() {
+        Constructor<?> cons = this.abstractScriptEngineClass.getEnclosingConstructor();
+        assertNull(cons, "getEnclosingConstructor() does not return null");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().getEnclosingMethod()
+     */
+    protected void testGetEnclosingMethod() {
+        Method m = this.abstractScriptEngineClass.getEnclosingMethod();
+        assertNull(m, "getEnclosingMethod() does not return null");
+    }
+
+    /**
      * Test for instanceof operator applied to a class javax.script.AbstractScriptEngine
      */
     @SuppressWarnings("cast")



More information about the distro-pkg-dev mailing list