/hg/rhino-tests: Enhancement of the test testAsSubclass.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Jan 3 04:37:48 PST 2014
changeset ca00dabf6d50 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=ca00dabf6d50
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jan 03 13:41:54 2014 +0100
Enhancement of the test testAsSubclass.
diffstat:
ChangeLog | 5 +
src/org/RhinoTests/AbstractScriptEngineClassTest.java | 49 +++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)
diffs (78 lines):
diff -r 1cf2215e04c1 -r ca00dabf6d50 ChangeLog
--- a/ChangeLog Thu Jan 02 12:06:14 2014 +0100
+++ b/ChangeLog Fri Jan 03 13:41:54 2014 +0100
@@ -1,3 +1,8 @@
+2014-01-03 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/AbstractScriptEngineClassTest.java:
+ Enhancement of the test testAsSubclass.
+
2014-01-02 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
diff -r 1cf2215e04c1 -r ca00dabf6d50 src/org/RhinoTests/AbstractScriptEngineClassTest.java
--- a/src/org/RhinoTests/AbstractScriptEngineClassTest.java Thu Jan 02 12:06:14 2014 +0100
+++ b/src/org/RhinoTests/AbstractScriptEngineClassTest.java Fri Jan 03 13:41:54 2014 +0100
@@ -887,6 +887,7 @@
methodsThatShouldExist_jdk6.put("getBindings", new Class[] {int.class});
methodsThatShouldExist_jdk6.put("setBindings", new Class[] {javax.script.Bindings.class, int.class});
methodsThatShouldExist_jdk6.put("eval", new Class[] {java.io.Reader.class, javax.script.Bindings.class});
+ methodsThatShouldExist_jdk6.put("eval", new Class[] {java.io.Reader.class, javax.script.Bindings.class});
methodsThatShouldExist_jdk6.put("eval", new Class[] {java.lang.String.class, javax.script.Bindings.class});
methodsThatShouldExist_jdk6.put("eval", new Class[] {java.io.Reader.class});
methodsThatShouldExist_jdk6.put("eval", new Class[] {java.lang.String.class});
@@ -1429,6 +1430,54 @@
}
try {
+ this.abstractScriptEngineClass.asSubclass(java.applet.Applet.class);
+ throw new AssertionError("Class.asSubclass(java.applet.Applet.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.abstractScriptEngineClass.asSubclass(java.awt.Button.class);
+ throw new AssertionError("Class.asSubclass(java.awt.Button.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.abstractScriptEngineClass.asSubclass(java.awt.Canvas.class);
+ throw new AssertionError("Class.asSubclass(java.awt.Canvas.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.abstractScriptEngineClass.asSubclass(java.awt.CardLayout.class);
+ throw new AssertionError("Class.asSubclass(java.awt.CardLayout.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.abstractScriptEngineClass.asSubclass(java.awt.Checkbox.class);
+ throw new AssertionError("Class.asSubclass(java.awt.Checkbox.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
+ this.abstractScriptEngineClass.asSubclass(java.awt.Choice.class);
+ throw new AssertionError("Class.asSubclass(java.awt.Choice.class) does not throw any exception");
+ }
+ catch (Exception e) {
+ // expected exception
+ }
+
+ try {
this.abstractScriptEngineClass.asSubclass(java.awt.Color.class);
throw new AssertionError("Class.asSubclass(java.awt.Color.class) does not throw any exception");
}
More information about the distro-pkg-dev
mailing list