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: getPropertyPrefix() tests


I committed this patch:

2005-08-30 David Gilbert <david.gilbert@object-refinery.com>

* gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/MyBasicButtonUI.java: new support class,
* gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/getPropertyPrefix.java: new test,
* gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/MyBasicRadioButtonUI.java: new support class,
* gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/MyBasicRadioButtonUI.java: new test,
* gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/MyBasicToggleButtonUI.java: new support class,
* gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/MyBasicToggleButtonUI.java: new test.


Regards,

Dave Gilbert
Index: gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/MyBasicButtonUI.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/MyBasicButtonUI.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/MyBasicButtonUI.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/MyBasicButtonUI.java	30 Aug 2005 21:27:41 -0000
@@ -0,0 +1,39 @@
+// Tags: not-a-test
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// 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.
+
+package gnu.testlet.javax.swing.plaf.basic.BasicButtonUI;
+
+import javax.swing.plaf.basic.BasicButtonUI;
+
+/**
+ * Provides access to protected methods.
+ */
+public class MyBasicButtonUI extends BasicButtonUI 
+{
+  public MyBasicButtonUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/getPropertyPrefix.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/getPropertyPrefix.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/getPropertyPrefix.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicButtonUI/getPropertyPrefix.java	30 Aug 2005 21:27:41 -0000
@@ -0,0 +1,45 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// 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.
+
+
+package gnu.testlet.javax.swing.plaf.basic.BasicButtonUI;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+/**
+ * Some checks for the getPropertyPrefix() method.
+ */
+public class getPropertyPrefix implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness) 
+  {
+    MyBasicButtonUI ui = new MyBasicButtonUI();
+    harness.check(ui.getPropertyPrefix(), "Button.");
+  }
+  
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/MyBasicRadioButtonUI.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/MyBasicRadioButtonUI.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/MyBasicRadioButtonUI.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/MyBasicRadioButtonUI.java	30 Aug 2005 21:27:41 -0000
@@ -0,0 +1,36 @@
+// Tags: not-a-test 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// 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.
+
+package gnu.testlet.javax.swing.plaf.basic.BasicRadioButtonUI;
+
+import javax.swing.plaf.basic.BasicRadioButtonUI;
+
+public class MyBasicRadioButtonUI extends BasicRadioButtonUI 
+{
+  public MyBasicRadioButtonUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/getPropertyPrefix.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/getPropertyPrefix.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/getPropertyPrefix.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonUI/getPropertyPrefix.java	30 Aug 2005 21:27:41 -0000
@@ -0,0 +1,44 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// 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, 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.  */
+
+package gnu.testlet.javax.swing.plaf.basic.BasicRadioButtonUI;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+/**
+ * Some checks for the getPropertyPrefix() method.
+ */
+public class getPropertyPrefix implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness) 
+  {
+    MyBasicRadioButtonUI ui = new MyBasicRadioButtonUI();
+    harness.check(ui.getPropertyPrefix(), "RadioButton.");
+  }
+  
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/MyBasicToggleButtonUI.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/MyBasicToggleButtonUI.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/MyBasicToggleButtonUI.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/MyBasicToggleButtonUI.java	30 Aug 2005 21:27:41 -0000
@@ -0,0 +1,39 @@
+// Tags: not-a-test
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// 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.
+
+package gnu.testlet.javax.swing.plaf.basic.BasicToggleButtonUI;
+
+import javax.swing.plaf.basic.BasicToggleButtonUI;
+
+/**
+ * Provides access to protected methods.
+ */
+public class MyBasicToggleButtonUI extends BasicToggleButtonUI 
+{
+  public MyBasicToggleButtonUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/getPropertyPrefix.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/getPropertyPrefix.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/getPropertyPrefix.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicToggleButtonUI/getPropertyPrefix.java	30 Aug 2005 21:27:41 -0000
@@ -0,0 +1,46 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// 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.
+
+
+package gnu.testlet.javax.swing.plaf.basic.BasicToggleButtonUI;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+/**
+ * Some checks for the getPropertyPrefix() method.
+ */
+public class getPropertyPrefix implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness) 
+  {
+    MyBasicToggleButtonUI ui = new MyBasicToggleButtonUI();
+    harness.check(ui.getPropertyPrefix(), "ToggleButton.");
+  }
+  
+}
+

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