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: AccessibleJTableHeader tests


This patch (committed) adds tests for the AccessibleJTableHeader:

2006-06-07 David Gilbert <david.gilbert@object-refinery.com>

* gnu/testlet/javax/swing/table/JTableHeader/getAccessibleContext.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChild.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChildrenCount.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleRole.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChild.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChildrenCount.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleComponent.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleContext.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleDescription.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleIndexInParent.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleName.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleRole.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleValue.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getBackground.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getFont.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getForeground.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getLocale.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isFocusTraversable.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isVisible.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/MyTableCellRenderer.java: New file,
* gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/setAccessibleName.java: New file.


Regards,

Dave
Index: gnu/testlet/javax/swing/table/JTableHeader/getAccessibleContext.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/getAccessibleContext.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/getAccessibleContext.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/getAccessibleContext.java	7 Jun 2006 22:42:23 -0000
@@ -0,0 +1,83 @@
+/* getAccessibleContext.java -- some checks for the getAccessibleContext()
+       method in the JTableHeader class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.AccessibleComponent;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableColumnModel;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+import javax.swing.table.TableColumn;
+
+public class getAccessibleContext implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    test1(harness);
+    test2(harness);
+  }
+  
+  public void test1(TestHarness harness)
+  {
+    JTableHeader th = new JTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    harness.check(ac.getAccessibleName(), null);
+    harness.check(ac.getAccessibleRole(), AccessibleRole.PANEL);
+    harness.check(ac.getAccessibleChildrenCount(), 0);
+    harness.check(ac.getAccessibleChild(0), null);
+    
+    AccessibleComponent acomp = ac.getAccessibleComponent();
+    harness.check(acomp.getBackground(), th.getBackground());
+  }
+  
+  public void test2(TestHarness harness)
+  {
+    harness.checkPoint("test2");
+    DefaultTableModel tm = new DefaultTableModel(2, 3);
+    DefaultTableColumnModel tcm = new DefaultTableColumnModel();
+    TableColumn tc0 = new TableColumn(0, 10);
+    tc0.setHeaderValue("XYZ0");
+    tcm.addColumn(tc0);
+    tcm.addColumn(new TableColumn(1, 20));
+    tcm.addColumn(new TableColumn(2, 30));
+    JTable t = new JTable(tm, tcm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    harness.check(ac.getAccessibleName(), null);
+    harness.check(ac.getAccessibleRole(), AccessibleRole.PANEL);
+    harness.check(ac.getAccessibleChildrenCount(), 3);
+
+    AccessibleContext he0 = ac.getAccessibleChild(0).getAccessibleContext();
+    harness.check(he0.getAccessibleName(), "XYZ0");
+    harness.check(he0.getAccessibleRole(), AccessibleRole.LABEL);
+    harness.check(he0.getAccessibleComponent(), he0);
+    
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChild.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChild.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChild.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChild.java	7 Jun 2006 22:42:23 -0000
@@ -0,0 +1,49 @@
+/* getAccessibleChild.java -- some checks for the getAccessibleChild()
+       method in the AccessibleJTableHeader class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+public class getAccessibleChild implements Testlet 
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    Accessible ac0B = ac.getAccessibleChild(0);
+    harness.check(ac0 != ac0B);   // creates new instance every time
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChildrenCount.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChildrenCount.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChildrenCount.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleChildrenCount.java	7 Jun 2006 22:42:23 -0000
@@ -0,0 +1,45 @@
+/* getAccessibleChildrenCount.java -- some checks for the 
+       getAccessibleChildrenCount() method in the AccessibleJTableHeader class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+public class getAccessibleChildrenCount implements Testlet 
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    harness.check(ac.getAccessibleChildrenCount(), 3);    
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleRole.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleRole.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleRole.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/getAccessibleRole.java	7 Jun 2006 22:42:23 -0000
@@ -0,0 +1,46 @@
+/* getAccessibleRole.java -- some checks for the getAccessibleRole() method
+       in the AccessibleJTableHeader class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+public class getAccessibleRole implements Testlet 
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    harness.check(ac.getAccessibleRole(), AccessibleRole.PANEL);    
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/MyTableCellRenderer.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/MyTableCellRenderer.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/MyTableCellRenderer.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/MyTableCellRenderer.java	7 Jun 2006 22:42:23 -0000
@@ -0,0 +1,57 @@
+/* MyTableCellRenderer.java -- test helper class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: not-a-test
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import java.awt.Color;
+import java.awt.Component;
+
+import javax.swing.JButton;
+import javax.swing.JTable;
+import javax.swing.table.TableCellRenderer;
+
+public class MyTableCellRenderer 
+  extends JButton
+  implements TableCellRenderer
+{
+
+    private Color bgColor;
+    
+    public void setBGColor(Color c)
+    {
+      bgColor = c;
+    }
+    
+    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) 
+    {
+      if (bgColor != null)
+        setBackground(bgColor);
+      return this;
+    }
+    
+    public boolean isFocusTraversable()
+    {
+      return false;
+    }
+
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChild.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChild.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChild.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChild.java	7 Jun 2006 22:42:23 -0000
@@ -0,0 +1,52 @@
+/* getAccessibleChild.java -- some checks for the getAccessibleChild() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleChild implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0ac.getAccessibleChild(0), null);
+    harness.check(ac0ac.getAccessibleChild(-1), null);
+    harness.check(ac0ac.getAccessibleChild(99), null);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChildrenCount.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChildrenCount.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChildrenCount.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleChildrenCount.java	7 Jun 2006 22:42:23 -0000
@@ -0,0 +1,51 @@
+/* getAccessibleChildrenCount.java -- some checks for the 
+       getAccessibleChildrenCount() method in the AccessibleJTableHeaderEntry 
+       class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleChildrenCount implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0ac.getAccessibleChildrenCount(), 0);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleComponent.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleComponent.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleComponent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleComponent.java	7 Jun 2006 22:42:24 -0000
@@ -0,0 +1,51 @@
+/* getAccessibleComponent.java -- some checks for the getAccessibleComponent() 
+       method in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleComponent;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleComponent implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac0ac = ac0.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac0, ac0ac);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleContext.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleContext.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleContext.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleContext.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,50 @@
+/* getAccessibleContext.java -- some checks for the getAccessibleContext() 
+       method in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleContext implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0, ac0ac);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleDescription.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleDescription.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleDescription.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleDescription.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,53 @@
+/* getAccessibleDescription.java -- some checks for the 
+       getAccessibleDescription() method in the AccessibleJTableHeaderEntry 
+       class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleDescription implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0ac.getAccessibleDescription(), null);
+    ac0ac.setAccessibleDescription("AAx");
+    harness.check(ac0ac.getAccessibleDescription(), "AAx");
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleIndexInParent.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleIndexInParent.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleIndexInParent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleIndexInParent.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,56 @@
+/* getAccessibleIndexInParent.java -- some checks for the 
+       getAccessibleIndexInParent() method in the AccessibleJTableHeaderEntry 
+       class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleIndexInParent implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0ac.getAccessibleIndexInParent(), 0);
+  
+    Accessible ac2 = ac.getAccessibleChild(2);
+    harness.check(ac2.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac2ac = ac2.getAccessibleContext();
+    harness.check(ac2ac.getAccessibleIndexInParent(), 2);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleName.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleName.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleName.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleName.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,52 @@
+/* getAccessibleName.java -- some checks for the getAccessibleName() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleName implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0ac.getAccessibleName(), "AA");
+    ac0ac.setAccessibleName("AAx");
+    harness.check(ac0ac.getAccessibleName(), "AAx");
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleRole.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleRole.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleRole.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleRole.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,57 @@
+/* getAccessibleRole.java -- some checks for the getAccessibleRole() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleRole implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0ac.getAccessibleRole(), AccessibleRole.LABEL);
+  
+    t.getColumnModel().getColumn(1).setHeaderRenderer(new MyTableCellRenderer());
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac1ac = ac1.getAccessibleContext();
+    harness.check(ac1ac.getAccessibleRole(), AccessibleRole.PUSH_BUTTON);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleValue.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleValue.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleValue.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getAccessibleValue.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,58 @@
+/* getAccessibleValue.java -- some checks for the getAccessibleValue() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleValue;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getAccessibleValue implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleValue ac0av = ac0.getAccessibleContext().getAccessibleValue();
+    harness.check(ac0av, null);
+    
+    MyTableCellRenderer r = new MyTableCellRenderer();
+    t.getColumnModel().getColumn(1).setHeaderRenderer(r);
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleValue ac1av = ac1.getAccessibleContext().getAccessibleValue();
+    harness.check(ac1av, r.getAccessibleContext().getAccessibleValue());
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getBackground.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getBackground.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getBackground.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getBackground.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,63 @@
+/* getBackground.java -- some checks for the getBackground() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.awt.Color;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleComponent;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JLabel;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getBackground implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac0ac = ac0.getAccessibleContext().getAccessibleComponent();
+    JLabel label = new JLabel("Just to get the background");
+    harness.check(ac0ac.getBackground(), label.getBackground());
+  
+    MyTableCellRenderer r = new MyTableCellRenderer();
+    r.setBackground(Color.yellow);
+    t.getColumnModel().getColumn(1).setHeaderRenderer(r);
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac1ac = ac1.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac1ac.getBackground(), Color.yellow);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getFont.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getFont.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getFont.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getFont.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,63 @@
+/* getFont.java -- some checks for the getFont() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.awt.Font;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleComponent;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableCellRenderer;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getFont implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac0ac = ac0.getAccessibleContext().getAccessibleComponent();
+    DefaultTableCellRenderer r0 = new DefaultTableCellRenderer();
+    harness.check(ac0ac.getFont(), r0.getFont());
+  
+    MyTableCellRenderer r = new MyTableCellRenderer();
+    r.setFont(new Font("Dialog", Font.BOLD, 15));
+    t.getColumnModel().getColumn(1).setHeaderRenderer(r);
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac1ac = ac1.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac1ac.getFont(), new Font("Dialog", Font.BOLD, 15));
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getForeground.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getForeground.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getForeground.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getForeground.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,63 @@
+/* getForeground.java -- some checks for the getForeground() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.awt.Color;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleComponent;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JLabel;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getForeground implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac0ac = ac0.getAccessibleContext().getAccessibleComponent();
+    JLabel label = new JLabel("Just to get the foreground");
+    harness.check(ac0ac.getForeground(), label.getForeground());
+  
+    MyTableCellRenderer r = new MyTableCellRenderer();
+    r.setForeground(Color.yellow);
+    t.getColumnModel().getColumn(1).setHeaderRenderer(r);
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac1ac = ac1.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac1ac.getForeground(), Color.yellow);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getLocale.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getLocale.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getLocale.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/getLocale.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,62 @@
+/* getLocale.java -- some checks for the getLocale() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.util.Locale;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JLabel;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+
+public class getLocale implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    JLabel label = new JLabel("Just to get the locale");
+    harness.check(ac0ac.getLocale(), label.getLocale());
+  
+    MyTableCellRenderer r = new MyTableCellRenderer();
+    r.setLocale(Locale.CHINA);
+    t.getColumnModel().getColumn(1).setHeaderRenderer(r);
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac1ac = ac1.getAccessibleContext();
+    harness.check(ac1ac.getLocale(), Locale.CHINA);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isFocusTraversable.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isFocusTraversable.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isFocusTraversable.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isFocusTraversable.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,57 @@
+/* isFocusTraversable.java -- some checks for the isFocusTraversable() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleComponent;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+public class isFocusTraversable implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac0ac = ac0.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac0ac.isFocusTraversable(), true);
+  
+    MyTableCellRenderer r = new MyTableCellRenderer();
+    t.getColumnModel().getColumn(1).setHeaderRenderer(r);
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac1ac = ac1.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac1ac.isFocusTraversable(), false);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isVisible.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isVisible.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isVisible.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/isVisible.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,58 @@
+/* isVisible.java -- some checks for the isVisible() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleComponent;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+public class isVisible implements Testlet
+{
+  public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac0ac = ac0.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac0ac.isVisible(), true);
+  
+    MyTableCellRenderer r = new MyTableCellRenderer();
+    r.setVisible(false);
+    t.getColumnModel().getColumn(1).setHeaderRenderer(r);
+    Accessible ac1 = ac.getAccessibleChild(1);
+    harness.check(ac1.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleComponent ac1ac = ac1.getAccessibleContext().getAccessibleComponent();
+    harness.check(ac1ac.isVisible(), false);
+  }
+}
Index: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/setAccessibleName.java
===================================================================
RCS file: gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/setAccessibleName.java
diff -N gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/setAccessibleName.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/setAccessibleName.java	7 Jun 2006 22:42:25 -0000
@@ -0,0 +1,70 @@
+/* setAccessibleName.java -- some checks for the setAccessibleName() method
+       in the AccessibleJTableHeaderEntry class.
+   Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.util.List;
+
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableModel;
+import javax.swing.table.JTableHeader;
+
+public class setAccessibleName implements Testlet, PropertyChangeListener
+{
+  List events = new java.util.ArrayList();
+  
+  public void propertyChange(PropertyChangeEvent e) 
+  {
+    events.add(e);
+  }
+
+public void test(TestHarness harness)
+  {
+    DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB", 
+        "CC"}, 3);
+    JTable t = new JTable(tm);
+    JTableHeader th = t.getTableHeader();
+    AccessibleContext ac = th.getAccessibleContext();
+    Accessible ac0 = ac.getAccessibleChild(0);
+    harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
+    AccessibleContext ac0ac = ac0.getAccessibleContext();
+    harness.check(ac0ac.getAccessibleName(), "AA");
+    ac0ac.addPropertyChangeListener(this);
+    ac0ac.setAccessibleName("AAx");
+    harness.check(ac0ac.getAccessibleName(), "AAx");
+    harness.check(events.size(), 1);
+    PropertyChangeEvent pce = (PropertyChangeEvent) events.get(0);
+    harness.check(pce.getPropertyName(), AccessibleContext.ACCESSIBLE_NAME_PROPERTY);
+    harness.check(pce.getOldValue(), null);
+    harness.check(pce.getNewValue(), "AAx");
+  }
+
+}

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