/hg/rhino-tests: Enhancement of the test testAsSubclass.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Jan 6 02:19:41 PST 2014
changeset ba7a236d21c1 in /hg/rhino-tests
details: http://icedtea.classpath.org/hg/rhino-tests?cmd=changeset;node=ba7a236d21c1
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Jan 06 11:23:56 2014 +0100
Enhancement of the test testAsSubclass.
diffstat:
ChangeLog | 5 +++
src/org/RhinoTests/BindingsClassTest.java | 48 +++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+), 0 deletions(-)
diffs (70 lines):
diff -r ca00dabf6d50 -r ba7a236d21c1 ChangeLog
--- a/ChangeLog Fri Jan 03 13:41:54 2014 +0100
+++ b/ChangeLog Mon Jan 06 11:23:56 2014 +0100
@@ -1,3 +1,8 @@
+2014-01-06 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/RhinoTests/BindingsClassTest.java:
+ Enhancement of the test testAsSubclass.
+
2014-01-03 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/RhinoTests/AbstractScriptEngineClassTest.java:
diff -r ca00dabf6d50 -r ba7a236d21c1 src/org/RhinoTests/BindingsClassTest.java
--- a/src/org/RhinoTests/BindingsClassTest.java Fri Jan 03 13:41:54 2014 +0100
+++ b/src/org/RhinoTests/BindingsClassTest.java Mon Jan 06 11:23:56 2014 +0100
@@ -1245,6 +1245,54 @@
}
try {
+ this.bindingsClass.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.bindingsClass.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.bindingsClass.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.bindingsClass.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.bindingsClass.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.bindingsClass.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.bindingsClass.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