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: more getPropertyPrefix tests for UI delegates


I committed these new tests:

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

* gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/MyBasicCheckBoxMenuItemUI.java: new support class,
* gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/getPropertyPrefix.java: new test,
* gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/MyBasicMenuItemUI.java: new support class,
* gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/getPropertyPrefix.java: new test,
* gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/MyBasicMenuUI.java: new support class,
* gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/getPropertyPrefix.java: new test,
* gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/MyBasicRadioButtonMenuItemUI.java: new support class,
* gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/getPropertyPrefix.java: new test.


Regards,

Dave Gilbert

Index: gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/MyBasicCheckBoxMenuItemUI.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/MyBasicCheckBoxMenuItemUI.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/MyBasicCheckBoxMenuItemUI.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/MyBasicCheckBoxMenuItemUI.java	31 Aug 2005 13:53:10 -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.BasicCheckBoxMenuItemUI;
+
+import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
+
+/**
+ * Provides access to protected methods.
+ */
+public class MyBasicCheckBoxMenuItemUI extends BasicCheckBoxMenuItemUI 
+{
+  public MyBasicCheckBoxMenuItemUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/getPropertyPrefix.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/getPropertyPrefix.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/getPropertyPrefix.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI/getPropertyPrefix.java	31 Aug 2005 13:53:10 -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.BasicCheckBoxMenuItemUI;
+
+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) 
+  {
+    MyBasicCheckBoxMenuItemUI ui = new MyBasicCheckBoxMenuItemUI();
+    harness.check(ui.getPropertyPrefix(), "CheckBoxMenuItem");
+  }
+  
+}
+
Index: gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/MyBasicMenuItemUI.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/MyBasicMenuItemUI.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/MyBasicMenuItemUI.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/MyBasicMenuItemUI.java	31 Aug 2005 13:53:10 -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.BasicMenuItemUI;
+
+import javax.swing.plaf.basic.BasicMenuItemUI;
+
+/**
+ * Provides access to protected methods.
+ */
+public class MyBasicMenuItemUI extends BasicMenuItemUI 
+{
+  public MyBasicMenuItemUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/getPropertyPrefix.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/getPropertyPrefix.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/getPropertyPrefix.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicMenuItemUI/getPropertyPrefix.java	31 Aug 2005 13:53:10 -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.BasicMenuItemUI;
+
+import javax.swing.plaf.basic.BasicMenuItemUI;
+
+/**
+ * Provides access to protected methods.
+ */
+public class MyBasicMenuItemUI extends BasicMenuItemUI 
+{
+  public MyBasicMenuItemUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/MyBasicMenuUI.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/MyBasicMenuUI.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/MyBasicMenuUI.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/MyBasicMenuUI.java	31 Aug 2005 13:53:10 -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.BasicMenuUI;
+
+import javax.swing.plaf.basic.BasicMenuUI;
+
+/**
+ * Provides access to protected methods.
+ */
+public class MyBasicMenuUI extends BasicMenuUI 
+{
+  public MyBasicMenuUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/getPropertyPrefix.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/getPropertyPrefix.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/getPropertyPrefix.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicMenuUI/getPropertyPrefix.java	31 Aug 2005 13:53:10 -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.BasicMenuUI;
+
+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) 
+  {
+    MyBasicMenuUI ui = new MyBasicMenuUI();
+    harness.check(ui.getPropertyPrefix(), "Menu");
+  }
+  
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/MyBasicRadioButtonMenuItemUI.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/MyBasicRadioButtonMenuItemUI.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/MyBasicRadioButtonMenuItemUI.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/MyBasicRadioButtonMenuItemUI.java	31 Aug 2005 13:53:11 -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.BasicRadioButtonMenuItemUI;
+
+import javax.swing.plaf.basic.BasicRadioButtonMenuItemUI;
+
+/**
+ * Provides access to protected methods.
+ */
+public class MyBasicRadioButtonMenuItemUI extends BasicRadioButtonMenuItemUI 
+{
+  public MyBasicRadioButtonMenuItemUI()
+  {
+    super();
+  }
+  public String getPropertyPrefix()
+  {
+    return super.getPropertyPrefix();
+  }
+}
Index: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/getPropertyPrefix.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/getPropertyPrefix.java
diff -N gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/getPropertyPrefix.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/basic/BasicRadioButtonMenuItemUI/getPropertyPrefix.java	31 Aug 2005 13:53:11 -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.BasicRadioButtonMenuItemUI;
+
+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) 
+  {
+    MyBasicRadioButtonMenuItemUI ui = new MyBasicRadioButtonMenuItemUI();
+    harness.check(ui.getPropertyPrefix(), "RadioButtonMenuItem");
+  }
+  
+}

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