/hg/rhino-tests: Added five new tests to the test suite src/org/...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Sep 17 03:18:39 PDT 2012


changeset a699d77ef3a5 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=a699d77ef3a5
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Sep 17 12:21:16 2012 +0200

	Added five new tests to the test suite src/org/RhinoTests/AbstractScriptEngineClassTest.java.


diffstat:

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

diffs (76 lines):

diff -r df52afae62a2 -r a699d77ef3a5 ChangeLog
--- a/ChangeLog	Fri Sep 14 10:59:01 2012 +0200
+++ b/ChangeLog	Mon Sep 17 12:21:16 2012 +0200
@@ -1,3 +1,8 @@
+2012-09-17  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+	Added five new tests to this test suite.
+
 2012-09-14  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/ScriptEngineFactoryClassTest.java:
diff -r df52afae62a2 -r a699d77ef3a5 src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Fri Sep 14 10:59:01 2012 +0200
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Mon Sep 17 12:21:16 2012 +0200
@@ -136,6 +136,60 @@
     }
 
     /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().isAnnotation()
+     */
+    protected void testIsAnnotation() {
+        assertFalse(this.abstractScriptEngineClass.isAnnotation(),
+                "Method AbstractScriptEngine.getClass().isAnnotation() returns wrong value");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().isAnnotationPresent()
+     */
+    protected void testIsAnnotationPresent() {
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.annotation.Annotation.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.annotation.Annotation.class) returns wrong value");
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.annotation.Documented.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.annotation.Documented.class) returns wrong value");
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.annotation.Inherited.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.annotation.Inherited.class) returns wrong value");
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.annotation.Retention.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.annotation.Retention.class) returns wrong value");
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.annotation.Target.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.annotation.Target.class) returns wrong value");
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.Deprecated.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.Deprecated.class) returns wrong value");
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.Override.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.Override.class) returns wrong value");
+        assertFalse(this.abstractScriptEngineClass.isAnnotationPresent(java.lang.SuppressWarnings.class),
+                "Method AbstractScriptEngine.getClass().isAnnotationPresent(java.lang.SuppressWarnings.class) returns wrong value");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().isAnonymousClass()
+     */
+    protected void testIsAnonymousClass() {
+        assertFalse(this.abstractScriptEngineClass.isAnonymousClass(),
+                "Method AbstractScriptEngine.getClass().isAnonymousClass() returns wrong value");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().isArray()
+     */
+    protected void testIsArray() {
+        assertFalse(this.abstractScriptEngineClass.isArray(),
+                "Method AbstractScriptEngine.getClass().isArray() returns wrong value");
+    }
+
+    /**
+     * Test for method javax.script.AbstractScriptEngine.getClass().isEnum()
+     */
+    protected void testIsEnum() {
+        assertFalse(this.abstractScriptEngineClass.isEnum(),
+                "Method AbstractScriptEngine.getClass().isEnum() returns wrong value");
+    }
+
+    /**
      * Test for method javax.script.AbstractScriptEngine.getClass().getInterfaces()
      */
     protected void testGetInterfaces() {



More information about the distro-pkg-dev mailing list