/hg/rhino-tests: Enhancement of the test testAsSubclass.

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Thu Jan 16 01:07:25 PST 2014


changeset 01e66e349104 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=01e66e349104
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Jan 16 10:11:35 2014 +0100

	Enhancement of the test testAsSubclass.


diffstat:

 ChangeLog                                             |    5 +
 src/org/RhinoTests/AbstractScriptEngineClassTest.java |  210 +++++++++++++++++-
 2 files changed, 214 insertions(+), 1 deletions(-)

diffs (239 lines):

diff -r 287dddd8c593 -r 01e66e349104 ChangeLog
--- a/ChangeLog	Wed Jan 15 13:16:03 2014 +0100
+++ b/ChangeLog	Thu Jan 16 10:11:35 2014 +0100
@@ -1,3 +1,8 @@
+2014-01-16  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+	Enhancement of the test testAsSubclass.
+
 2014-01-15  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/RhinoTests/ScriptExceptionClassTest.java:
diff -r 287dddd8c593 -r 01e66e349104 src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Wed Jan 15 13:16:03 2014 +0100
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java	Thu Jan 16 10:11:35 2014 +0100
@@ -1,7 +1,7 @@
 /*
   Rhino test framework
 
-   Copyright (C) 2011, 2012, 2013  Red Hat
+   Copyright (C) 2011, 2012, 2013, 2014  Red Hat
 
 This file is part of IcedTea.
 
@@ -1502,6 +1502,214 @@
         }
 
         try {
+            this.abstractScriptEngineClass.asSubclass(java.awt.Label.class);
+            throw new AssertionError("Class.asSubclass(java.awt.Label.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.awt.List.class);
+            throw new AssertionError("Class.asSubclass(java.awt.List.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.awt.Menu.class);
+            throw new AssertionError("Class.asSubclass(java.awt.Menu.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.File.class);
+            throw new AssertionError("Class.asSubclass(java.io.File.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.Reader.class);
+            throw new AssertionError("Class.asSubclass(java.io.Reader.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.Writer.class);
+            throw new AssertionError("Class.asSubclass(java.io.Writer.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.StringReader.class);
+            throw new AssertionError("Class.asSubclass(java.io.StringReader.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.StringWriter.class);
+            throw new AssertionError("Class.asSubclass(java.io.StringWriter.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.InputStream.class);
+            throw new AssertionError("Class.asSubclass(java.io.InputStream.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.OutputStream.class);
+            throw new AssertionError("Class.asSubclass(java.io.OutputStream.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.ObjectInputStream.class);
+            throw new AssertionError("Class.asSubclass(java.io.ObjectInputStream.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.io.ObjectOutputStream.class);
+            throw new AssertionError("Class.asSubclass(java.io.ObjectOutputStream.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.math.BigDecimal.class);
+            throw new AssertionError("Class.asSubclass(java.math.BigDecimal.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.math.BigInteger.class);
+            throw new AssertionError("Class.asSubclass(java.math.BigInteger.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.ArrayList.class);
+            throw new AssertionError("Class.asSubclass(java.util.ArrayList.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.LinkedList.class);
+            throw new AssertionError("Class.asSubclass(java.util.LinkedList.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.HashMap.class);
+            throw new AssertionError("Class.asSubclass(java.util.HashMap.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.TreeMap.class);
+            throw new AssertionError("Class.asSubclass(java.util.TreeMap.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.HashSet.class);
+            throw new AssertionError("Class.asSubclass(java.util.HashSet.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.TreeSet.class);
+            throw new AssertionError("Class.asSubclass(java.util.TreeSet.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.Stack.class);
+            throw new AssertionError("Class.asSubclass(java.util.Stack.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.Vector.class);
+            throw new AssertionError("Class.asSubclass(java.util.Vector.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.Hashtable.class);
+            throw new AssertionError("Class.asSubclass(java.util.Hashtable.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.Calendar.class);
+            throw new AssertionError("Class.asSubclass(java.util.Calendar.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.Arrays.class);
+            throw new AssertionError("Class.asSubclass(java.util.Arrays.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
+            this.abstractScriptEngineClass.asSubclass(java.util.Collections.class);
+            throw new AssertionError("Class.asSubclass(java.util.Collections.class) does not throw any exception");
+        }
+        catch (Exception e) {
+            // expected exception
+        }
+
+        try {
             this.abstractScriptEngineClass.asSubclass(javax.swing.JPanel.class);
             throw new AssertionError("Class.asSubclass(javax.swing.JPanel.class) does not throw any exception");
         }


More information about the distro-pkg-dev mailing list