public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* JRootPane test
@ 2006-11-22 20:03 Tania Bento
  2006-11-22 20:04 ` Tania Bento
  0 siblings, 1 reply; 2+ messages in thread
From: Tania Bento @ 2006-11-22 20:03 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

Hey,

This patch adds a test to javax.swing.JRootPane.setLayeredPane().

Cheers,
Tania

2006-11-22  Tania Bento  <tbento@redhat.com>

        * gnu/testlet/javax/swing/JRootPane/setLayeredPane.java: New
test.




[-- Attachment #2: patch.diff --]
[-- Type: text/x-patch, Size: 1869 bytes --]

Index: gnu/testlet/javax/swing/JRootPane/setLayeredPane.java
===================================================================
RCS file: gnu/testlet/javax/swing/JRootPane/setLayeredPane.java
diff -N gnu/testlet/javax/swing/JRootPane/setLayeredPane.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/JRootPane/setLayeredPane.java	22 Nov 2006 20:02:56 -0000
@@ -0,0 +1,53 @@
+/* setLayeredPane.java 
+   Copyright (C) 2006 Red Hat
+This file is part of Mauve.
+
+Mauve is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+Mauve is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mauve; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.JRootPane;
+
+import java.awt.IllegalComponentStateException;
+
+import javax.swing.JRootPane;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+public class setLayeredPane implements Testlet
+{
+
+  public void test(TestHarness harness)
+  {
+    // This test checks that if an IllegalComponentStateException is 
+    // thrown if the layered pane parameter is null.
+    JRootPane rootPane = new JRootPane();
+    boolean fail = false;
+    try
+      {
+        rootPane.setLayeredPane(null);
+      }
+    catch (IllegalComponentStateException e)
+      {
+        fail = true;
+      }
+    harness.check(fail);
+  }
+
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: JRootPane test
  2006-11-22 20:03 JRootPane test Tania Bento
@ 2006-11-22 20:04 ` Tania Bento
  0 siblings, 0 replies; 2+ messages in thread
From: Tania Bento @ 2006-11-22 20:04 UTC (permalink / raw)
  To: mauve-patches

Sorry, forgot to add FYI to subject header.


On Wed, 2006-11-22 at 15:03 -0500, Tania Bento wrote:
> Hey,
> 
> This patch adds a test to javax.swing.JRootPane.setLayeredPane().
> 
> Cheers,
> Tania
> 
> 2006-11-22  Tania Bento  <tbento@redhat.com>
> 
>         * gnu/testlet/javax/swing/JRootPane/setLayeredPane.java: New
> test.
> 
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-22 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-22 20:03 JRootPane test Tania Bento
2006-11-22 20:04 ` Tania Bento

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).