This is the mail archive of the mauve-patches@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: New GridBagLayout test


Hey,

This adds a new test to java.awt.GridBagLayout.toString().

Cheers,
Tania

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

        * gnu/testlet/java/awt/GridBagLayout/toString.java: New test.

Index: gnu/testlet/java/awt/GridBagLayout/toString.java
===================================================================
RCS file: gnu/testlet/java/awt/GridBagLayout/toString.java
diff -N gnu/testlet/java/awt/GridBagLayout/toString.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/java/awt/GridBagLayout/toString.java	1 Nov 2006 16:44:09 -0000
@@ -0,0 +1,44 @@
+/* toString.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: 1.4
+
+package gnu.testlet.java.awt.GridBagLayout;
+
+import java.awt.Button;
+import java.awt.GridBagLayout;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+public class toString implements Testlet
+{
+
+  public void test(TestHarness harness)
+  {
+    GridBagLayout gbl = new GridBagLayout();
+    harness.check(gbl.toString(), "java.awt.GridBagLayout");
+    
+    gbl.addLayoutComponent("String", new Button("Button"));
+    harness.check(gbl.toString(), "java.awt.GridBagLayout");
+  }
+
+}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]