# HG changeset patch # User Pavel Tisnovsky # Date 1390902446 -3600 # Node ID 73503cadcb15f676a9b410de1d1fb05b0481faaf # Parent eb150896a38519de3d6e217198942d4d9a01bb5e Enhancement of the test testGetResourceAsStreamNegativeTest. diff -r eb150896a385 -r 73503cadcb15 ChangeLog --- a/ChangeLog Mon Jan 27 12:52:02 2014 +0100 +++ b/ChangeLog Tue Jan 28 10:47:26 2014 +0100 @@ -1,3 +1,8 @@ +2014-01-28 Pavel Tisnovsky + + * src/org/RhinoTests/ScriptEngineManagerClassTest.java: + Enhancement of the test testGetResourceAsStreamNegativeTest. + 2014-01-27 Pavel Tisnovsky * src/org/RhinoTests/ScriptEngineFactoryClassTest.java: diff -r eb150896a385 -r 73503cadcb15 src/org/RhinoTests/ScriptEngineManagerClassTest.java --- a/src/org/RhinoTests/ScriptEngineManagerClassTest.java Mon Jan 27 12:52:02 2014 +0100 +++ b/src/org/RhinoTests/ScriptEngineManagerClassTest.java Tue Jan 28 10:47:26 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. @@ -1424,6 +1424,54 @@ } try { + this.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.asSubclass(java.awt.Color.class); throw new AssertionError("Class.asSubclass(java.awt.Color.class) does not throw any exception"); } @@ -1448,6 +1496,214 @@ } try { + this.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.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.scriptEngineManagerClass.asSubclass(javax.swing.JPanel.class); throw new AssertionError("Class.asSubclass(javax.swing.JPanel.class) does not throw any exception"); }