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: javax.swing.text.StyleConstants - new tests


I committed these new tests - Classpath fails on about 22 checks, I have a patch that fixes those:

2006-01-17 David Gilbert <david.gilbert@object-refinery.com>

* gnu/testlet/javax/swing/text/StyleConstants/constants.java: New file,
* gnu/testlet/javax/swing/text/StyleConstants/getAlignment.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getBackground.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getBidiLevel.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getComponent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getFirstLineIndent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getFontFamily.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getFontSize.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getForeground.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getIcon.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getLeftIndent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getLineSpacing.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getRightIndent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getSpaceAbove.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getSpaceBelow.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/getTabSet.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/isBold.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/isItalic.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/isStrikeThrough.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/isSubscript.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/isSuperscript.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/isUnderline.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setAlignment.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setBackground.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setBidiLevel.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setBold.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setComponent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setFirstLineIndent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setFontFamily.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setFontSize.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setForeground.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setIcon.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setItalic.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setLeftIndent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setLineSpacing.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setRightIndent.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setSpaceAbove.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setSpaceBelow.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setStrikeThrough.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setSubscript.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setSuperscript.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setTabSet.java: Likewise,
* gnu/testlet/javax/swing/text/StyleConstants/setUnderline.java: Likewise.


Regards,

Dave
Index: gnu/testlet/javax/swing/text/StyleConstants/constants.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/constants.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/constants.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/constants.java	17 Jan 2006 10:00:54 -0000
@@ -0,0 +1,105 @@
+/* constants.java -- Tests for the constants in the StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.StyleConstants;
+import javax.swing.text.StyleConstants.CharacterConstants;
+import javax.swing.text.StyleConstants.ColorConstants;
+import javax.swing.text.StyleConstants.FontConstants;
+import javax.swing.text.StyleConstants.ParagraphConstants;
+
+/**
+ * Some checks for the constants in the {@link StyleConstants} class.
+ */
+public class constants implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    harness.check(StyleConstants.ComponentElementName.equals("component"));
+    harness.check(StyleConstants.IconElementName.equals("icon"));
+    harness.check(StyleConstants.ModelAttribute.toString(), "model");  
+    harness.check(StyleConstants.NameAttribute.toString(), "name");  
+    harness.check(StyleConstants.ResolveAttribute.toString(), "resolver");  
+      
+    harness.check(StyleConstants.Background.equals(
+            CharacterConstants.Background));
+    harness.check(StyleConstants.BidiLevel.equals(
+            CharacterConstants.BidiLevel));
+    harness.check(StyleConstants.Bold.equals(CharacterConstants.Bold));
+    harness.check(StyleConstants.ComponentAttribute.equals(
+            CharacterConstants.ComponentAttribute));
+    harness.check(StyleConstants.Family.equals(CharacterConstants.Family));
+    harness.check(StyleConstants.Foreground.equals(
+            CharacterConstants.Foreground));
+    harness.check(StyleConstants.IconAttribute.equals(
+            CharacterConstants.IconAttribute));
+    harness.check(StyleConstants.Italic.equals(CharacterConstants.Italic));
+    harness.check(StyleConstants.Size.equals(CharacterConstants.Size));
+    harness.check(StyleConstants.StrikeThrough.equals(
+            CharacterConstants.StrikeThrough));
+    harness.check(StyleConstants.Subscript.equals(
+            CharacterConstants.Subscript));
+    harness.check(StyleConstants.Superscript.equals(
+            CharacterConstants.Superscript));
+    harness.check(StyleConstants.Underline.equals(
+            CharacterConstants.Underline));
+
+    harness.check(StyleConstants.Background.equals(ColorConstants.Background));
+    harness.check(StyleConstants.Foreground.equals(ColorConstants.Foreground));
+
+    harness.check(StyleConstants.Bold.equals(FontConstants.Bold));
+    harness.check(StyleConstants.Family.equals(FontConstants.Family));
+    harness.check(StyleConstants.Italic.equals(FontConstants.Italic));
+    harness.check(StyleConstants.Size.equals(FontConstants.Size));
+
+    harness.check(StyleConstants.Alignment.equals(
+            ParagraphConstants.Alignment));
+    harness.check(StyleConstants.FirstLineIndent.equals(
+            ParagraphConstants.FirstLineIndent));
+    harness.check(StyleConstants.LeftIndent.equals(
+            ParagraphConstants.LeftIndent));
+    harness.check(StyleConstants.LineSpacing.equals(
+            ParagraphConstants.LineSpacing));
+    harness.check(StyleConstants.Orientation.equals(
+            ParagraphConstants.Orientation));
+    harness.check(StyleConstants.RightIndent.equals(
+            ParagraphConstants.RightIndent));
+    harness.check(StyleConstants.SpaceAbove.equals(
+            ParagraphConstants.SpaceAbove));
+    harness.check(StyleConstants.SpaceBelow.equals(
+            ParagraphConstants.SpaceBelow));
+    harness.check(StyleConstants.TabSet.equals(ParagraphConstants.TabSet));    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getAlignment.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getAlignment.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getAlignment.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getAlignment.java	17 Jan 2006 10:00:54 -0000
@@ -0,0 +1,79 @@
+/* getAlignment.java -- Tests for the getAlignment() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getAlignment() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getAlignment implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getAlignment(s), StyleConstants.ALIGN_LEFT);
+    
+    // check local setting
+    StyleConstants.setAlignment(s, StyleConstants.ALIGN_JUSTIFIED);
+    harness.check(StyleConstants.getAlignment(s), 
+            StyleConstants.ALIGN_JUSTIFIED);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Alignment);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setAlignment(parent, StyleConstants.ALIGN_JUSTIFIED);
+    harness.check(StyleConstants.getAlignment(s), 
+            StyleConstants.ALIGN_JUSTIFIED);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getAlignment(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getBackground.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getBackground.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getBackground.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getBackground.java	17 Jan 2006 10:00:54 -0000
@@ -0,0 +1,79 @@
+/* getBackground.java -- Tests for the getBackground() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.awt.Color;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getBackground() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getBackground implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getBackground(s), Color.black);
+    
+    // check local setting
+    StyleConstants.setBackground(s, Color.red);
+    harness.check(StyleConstants.getBackground(s), Color.red);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Background);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setBackground(parent, Color.yellow);
+    harness.check(StyleConstants.getBackground(s), Color.yellow);   
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getBackground(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getBidiLevel.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getBidiLevel.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getBidiLevel.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getBidiLevel.java	17 Jan 2006 10:00:54 -0000
@@ -0,0 +1,77 @@
+/* getBidiLevel.java -- Tests for the getBidiLevel() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getBidiLevel() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getBidiLevel implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getBidiLevel(s), 0);
+    
+    // check local setting
+    StyleConstants.setBidiLevel(s, 1);
+    harness.check(StyleConstants.getBidiLevel(s), 1);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.BidiLevel);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setBidiLevel(parent, 2);
+    harness.check(StyleConstants.getBidiLevel(s), 2);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getBidiLevel(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getComponent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getComponent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getComponent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getComponent.java	17 Jan 2006 10:00:54 -0000
@@ -0,0 +1,80 @@
+/* getComponent.java -- Tests for the getComponent() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.JLabel;
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getComponent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getComponent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getComponent(s), null);
+    
+    // check local setting
+    JLabel comp = new JLabel("Label1");
+    StyleConstants.setComponent(s, comp);
+    harness.check(StyleConstants.getComponent(s), comp);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.ComponentAttribute);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    JLabel comp2 = new JLabel("Label2");
+    StyleConstants.setComponent(parent, comp2);
+    harness.check(StyleConstants.getComponent(s), comp2);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getComponent(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getFirstLineIndent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getFirstLineIndent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getFirstLineIndent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getFirstLineIndent.java	17 Jan 2006 10:00:54 -0000
@@ -0,0 +1,77 @@
+/* getFirstLineIndent.java -- Tests for the getFirstLineIndent() method in the 
+                              StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getFirstLineIndent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getFirstLineIndent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getFirstLineIndent(s), 0.0f);
+    
+    // check local setting
+    StyleConstants.setFirstLineIndent(s, 1.0f);
+    harness.check(StyleConstants.getFirstLineIndent(s), 1.0f);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.FirstLineIndent);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setFirstLineIndent(parent, 2.0f);
+    harness.check(StyleConstants.getFirstLineIndent(s), 2.0f);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getFirstLineIndent(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getFontFamily.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getFontFamily.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getFontFamily.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getFontFamily.java	17 Jan 2006 10:00:54 -0000
@@ -0,0 +1,77 @@
+/* getFontFamily.java -- Tests for the getFontFamily() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getFontFamily() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getFontFamily implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getFontFamily(s), "Monospaced");
+    
+    // check local setting
+    StyleConstants.setFontFamily(s, "XYZ");
+    harness.check(StyleConstants.getFontFamily(s), "XYZ");
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.FontFamily);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setFontFamily(parent, "ABC");
+    harness.check(StyleConstants.getFontFamily(s), "ABC");    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getFontFamily(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getFontSize.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getFontSize.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getFontSize.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getFontSize.java	17 Jan 2006 10:00:55 -0000
@@ -0,0 +1,77 @@
+/* getFontSize.java -- Tests for the getFontSize() method in the 
+                       StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getFontSize() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getFontSize implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getFontSize(s), 12);
+    
+    // check local setting
+    StyleConstants.setFontSize(s, 14);
+    harness.check(StyleConstants.getFontSize(s), 14);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.FontSize);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setFontSize(parent, 16);
+    harness.check(StyleConstants.getFontSize(s), 16);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getFontSize(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getForeground.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getForeground.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getForeground.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getForeground.java	17 Jan 2006 10:00:55 -0000
@@ -0,0 +1,79 @@
+/* getForeground.java -- Tests for the getForeground() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.awt.Color;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getForeground() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getForeground implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getForeground(s), Color.black);
+    
+    // check local setting
+    StyleConstants.setForeground(s, Color.red);
+    harness.check(StyleConstants.getForeground(s), Color.red);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Foreground);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setForeground(parent, Color.yellow);
+    harness.check(StyleConstants.getForeground(s), Color.yellow);   
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getForeground(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getIcon.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getIcon.java	17 Jan 2006 10:00:55 -0000
@@ -0,0 +1,79 @@
+/* getIcon.java -- Tests for the getIcon() method in the StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getIcon() method in the {@link StyleConstants} class.
+ */
+public class getIcon implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getIcon(s), null);
+    
+    // check local setting
+    Icon icon1 = MetalIconFactory.getFileChooserHomeFolderIcon();
+    StyleConstants.setIcon(s, icon1);
+    harness.check(StyleConstants.getIcon(s), icon1);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.IconAttribute);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    Icon icon2 = MetalIconFactory.getFileChooserNewFolderIcon();
+    StyleConstants.setIcon(parent, icon2);
+    harness.check(StyleConstants.getIcon(s), icon2);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getIcon(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getLeftIndent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getLeftIndent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getLeftIndent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getLeftIndent.java	17 Jan 2006 10:00:55 -0000
@@ -0,0 +1,77 @@
+/* getLeftIndent.java -- Tests for the getLeftIndent() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getLeftIndent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getLeftIndent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getLeftIndent(s), 0.0f);
+    
+    // check local setting
+    StyleConstants.setLeftIndent(s, 1.0f);
+    harness.check(StyleConstants.getLeftIndent(s), 1.0f);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.LeftIndent);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setLeftIndent(parent, 2.0f);
+    harness.check(StyleConstants.getLeftIndent(s), 2.0f);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getLeftIndent(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getLineSpacing.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getLineSpacing.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getLineSpacing.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getLineSpacing.java	17 Jan 2006 10:00:55 -0000
@@ -0,0 +1,77 @@
+/* getLineSpacing.java -- Tests for the getLineSpacing() method in the 
+                          StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getLineSpacing() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getLineSpacing implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getLineSpacing(s), 0.0f);
+    
+    // check local setting
+    StyleConstants.setLineSpacing(s, 1.0f);
+    harness.check(StyleConstants.getLineSpacing(s), 1.0f);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.LineSpacing);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setLineSpacing(parent, 2.0f);
+    harness.check(StyleConstants.getLineSpacing(s), 2.0f);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getLineSpacing(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getRightIndent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getRightIndent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getRightIndent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getRightIndent.java	17 Jan 2006 10:00:55 -0000
@@ -0,0 +1,77 @@
+/* getRightIndent.java -- Tests for the getRightIndent() method in the 
+                          StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getRightIndent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getRightIndent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getRightIndent(s), 0.0f);
+    
+    // check local setting
+    StyleConstants.setRightIndent(s, 1.0f);
+    harness.check(StyleConstants.getRightIndent(s), 1.0f);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.RightIndent);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setRightIndent(parent, 2.0f);
+    harness.check(StyleConstants.getRightIndent(s), 2.0f);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getRightIndent(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getSpaceAbove.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getSpaceAbove.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getSpaceAbove.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getSpaceAbove.java	17 Jan 2006 10:00:55 -0000
@@ -0,0 +1,77 @@
+/* getSpaceAbove.java -- Tests for the getSpaceAbove() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getSpaceAbove() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getSpaceAbove implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getSpaceAbove(s), 0.0f);
+    
+    // check local setting
+    StyleConstants.setSpaceAbove(s, 1.0f);
+    harness.check(StyleConstants.getSpaceAbove(s), 1.0f);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.SpaceAbove);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setSpaceAbove(parent, 2.0f);
+    harness.check(StyleConstants.getSpaceAbove(s), 2.0f);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getSpaceAbove(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getSpaceBelow.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getSpaceBelow.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getSpaceBelow.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getSpaceBelow.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,77 @@
+/* getSpaceBelow.java -- Tests for the getSpaceBelow() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the getSpaceBelow() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getSpaceBelow implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getSpaceBelow(s), 0.0f);
+    
+    // check local setting
+    StyleConstants.setSpaceBelow(s, 1.0f);
+    harness.check(StyleConstants.getSpaceBelow(s), 1.0f);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.SpaceBelow);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setSpaceBelow(parent, 2.0f);
+    harness.check(StyleConstants.getSpaceBelow(s), 2.0f);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getSpaceBelow(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/getTabSet.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/getTabSet.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/getTabSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/getTabSet.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,83 @@
+/* getTabSet.java -- Tests for the getTabSet() method in the 
+                     StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+import javax.swing.text.TabSet;
+import javax.swing.text.TabStop;
+
+/**
+ * Some checks for the getTabSet() method in the {@link StyleConstants} 
+ * class.
+ */
+public class getTabSet implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.getTabSet(s), null);
+    
+    // check local setting
+    TabStop[] tabs1 = new TabStop[] {new TabStop(8.0f)};
+    TabSet ts1 = new TabSet(tabs1);
+    StyleConstants.setTabSet(s, ts1);
+    harness.check(StyleConstants.getTabSet(s), ts1);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.TabSet);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    TabStop[] tabs2 = new TabStop[] {new TabStop(10.0f)};
+    TabSet ts2 = new TabSet(tabs2);
+    StyleConstants.setTabSet(parent, ts2);
+    harness.check(StyleConstants.getTabSet(s), ts2);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.getTabSet(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/isBold.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/isBold.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/isBold.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/isBold.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,75 @@
+/* isBold.java -- Tests for the isBold() method in the StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the isBold() method in the {@link StyleConstants} class.
+ */
+public class isBold implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.isBold(s), false);
+    
+    // check local setting
+    StyleConstants.setBold(s, true);
+    harness.check(StyleConstants.isBold(s), true);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Bold);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setBold(parent, true);
+    harness.check(StyleConstants.isBold(s), true);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.isBold(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/isItalic.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/isItalic.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/isItalic.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/isItalic.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,75 @@
+/* isItalic.java -- Tests for the isItalic() method in the StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the isItalic() method in the {@link StyleConstants} class.
+ */
+public class isItalic implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.isItalic(s), false);
+    
+    // check local setting
+    StyleConstants.setItalic(s, true);
+    harness.check(StyleConstants.isItalic(s), true);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Italic);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setItalic(parent, true);
+    harness.check(StyleConstants.isItalic(s), true);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.isItalic(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/isStrikeThrough.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/isStrikeThrough.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/isStrikeThrough.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/isStrikeThrough.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,77 @@
+/* isStrikeThrough.java -- Tests for the isStrikeThrough() method in the 
+                           StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the isStrikeThrough() method in the {@link StyleConstants} 
+ * class.
+ */
+public class isStrikeThrough implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.isStrikeThrough(s), false);
+    
+    // check local setting
+    StyleConstants.setStrikeThrough(s, true);
+    harness.check(StyleConstants.isStrikeThrough(s), true);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.StrikeThrough);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setStrikeThrough(parent, true);
+    harness.check(StyleConstants.isStrikeThrough(s), true);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.isStrikeThrough(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/isSubscript.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/isSubscript.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/isSubscript.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/isSubscript.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,76 @@
+/* isSubscript.java -- Tests for the isSubscript() method in the StyleConstants
+                       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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the isSubscript() method in the {@link StyleConstants} class.
+ */
+public class isSubscript implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.isSubscript(s), false);
+    
+    // check local setting
+    StyleConstants.setSubscript(s, true);
+    harness.check(StyleConstants.isSubscript(s), true);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Subscript);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setSubscript(parent, true);
+    harness.check(StyleConstants.isSubscript(s), true);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.isSubscript(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/isSuperscript.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/isSuperscript.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/isSuperscript.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/isSuperscript.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,77 @@
+/* isSuperscript.java -- Tests for the isSuperscript() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the isSuperscript() method in the {@link StyleConstants} 
+ * class.
+ */
+public class isSuperscript implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.isSuperscript(s), false);
+    
+    // check local setting
+    StyleConstants.setSuperscript(s, true);
+    harness.check(StyleConstants.isSuperscript(s), true);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Superscript);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setSuperscript(parent, true);
+    harness.check(StyleConstants.isSuperscript(s), true);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.isSuperscript(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/isUnderline.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/isUnderline.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/isUnderline.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/isUnderline.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,76 @@
+/* isUnderline.java -- Tests for the isUnderline() method in the StyleConstants
+                       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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the isUnderline() method in the {@link StyleConstants} class.
+ */
+public class isUnderline implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check default
+    harness.check(StyleConstants.isUnderline(s), false);
+    
+    // check local setting
+    StyleConstants.setUnderline(s, true);
+    harness.check(StyleConstants.isUnderline(s), true);
+    
+    // check resolving parent setting
+    s.removeAttribute(StyleConstants.Underline);
+    SimpleAttributeSet parent = new SimpleAttributeSet();
+    s.setResolveParent(parent);
+    StyleConstants.setUnderline(parent, true);
+    harness.check(StyleConstants.isUnderline(s), true);    
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.isUnderline(null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setAlignment.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setAlignment.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setAlignment.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setAlignment.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,72 @@
+/* setAlignment.java -- Tests for the setAlignment() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setAlignment() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setAlignment implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setAlignment(s, StyleConstants.ALIGN_JUSTIFIED);
+    harness.check(StyleConstants.getAlignment(s), 
+            StyleConstants.ALIGN_JUSTIFIED);
+    
+    // check unknown value 
+    StyleConstants.setAlignment(s, 99);
+    harness.check(StyleConstants.getAlignment(s), 99);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setAlignment(null, StyleConstants.ALIGN_JUSTIFIED);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setBackground.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setBackground.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setBackground.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setBackground.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,81 @@
+/* setBackground.java -- Tests for the setBackground() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.awt.Color;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setBackground() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setBackground implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setBackground(s, Color.blue);
+    harness.check(StyleConstants.getBackground(s), Color.blue);
+    
+    // try null value
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setBackground(s, null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+
+    // try null key
+    pass = false;
+    try
+      {
+        StyleConstants.setBackground(null, Color.red);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setBidiLevel.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setBidiLevel.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setBidiLevel.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setBidiLevel.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,67 @@
+/* setBidiLevel.java -- Tests for the setBidiLevel() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setBidiLevel() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setBidiLevel implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setBidiLevel(s, 1);
+    harness.check(StyleConstants.getBidiLevel(s), 1);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setBidiLevel(null, 2);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setBold.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setBold.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setBold.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setBold.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,66 @@
+/* setBold.java -- Tests for the setBold() method in the StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setBold() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setBold implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setBold(s, true);
+    harness.check(StyleConstants.isBold(s), true);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setBold(null, true);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setComponent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setComponent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setComponent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setComponent.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,81 @@
+/* setComponent.java -- Tests for the setComponent() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.JLabel;
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setComponent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setComponent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    JLabel comp1 = new JLabel("XYZ");
+    StyleConstants.setComponent(s, comp1);
+    harness.check(StyleConstants.getComponent(s), comp1);
+    
+    // try null value
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setComponent(s, null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+
+    // try null key
+    pass = false;
+    try
+      {
+        StyleConstants.setComponent(null, comp1);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setFirstLineIndent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setFirstLineIndent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setFirstLineIndent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setFirstLineIndent.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,67 @@
+/* setFirstLineIndent.java -- Tests for the setFirstLineIndent() method in the 
+                              StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setFirstLineIndent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setFirstLineIndent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setFirstLineIndent(s, 4.0f);
+    harness.check(StyleConstants.getFirstLineIndent(s), 4.0f);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setFirstLineIndent(null, 2.0f);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setFontFamily.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setFontFamily.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setFontFamily.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setFontFamily.java	17 Jan 2006 10:00:56 -0000
@@ -0,0 +1,79 @@
+/* setFontFamily.java -- Tests for the setFontFamily() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setFontFamily() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setFontFamily implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setFontFamily(s, "F1");
+    harness.check(StyleConstants.getFontFamily(s), "F1");
+    
+    // try null value
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setFontFamily(s, null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+
+    // try null key
+    pass = false;
+    try
+      {
+        StyleConstants.setFontFamily(null, "XYZ");
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setFontSize.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setFontSize.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setFontSize.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setFontSize.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setFontSize.java -- Tests for the setFontSize() method in the 
+                       StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setFontSize() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setFontSize implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setFontSize(s, 14);
+    harness.check(StyleConstants.getFontSize(s), 14);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setFontSize(null, 2);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setForeground.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setForeground.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setForeground.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setForeground.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,81 @@
+/* setForeground.java -- Tests for the setForeground() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import java.awt.Color;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setForeground() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setForeground implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setForeground(s, Color.blue);
+    harness.check(StyleConstants.getForeground(s), Color.blue);
+    
+    // try null value
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setForeground(s, null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+
+    // try null key
+    pass = false;
+    try
+      {
+        StyleConstants.setForeground(null, Color.red);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setIcon.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setIcon.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,81 @@
+/* setIcon.java -- Tests for the setIcon() method in the StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setIcon() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setIcon implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    Icon icon1 = MetalIconFactory.getTreeComputerIcon();
+    StyleConstants.setIcon(s, icon1);
+    harness.check(StyleConstants.getIcon(s), icon1);
+    
+    // try null value
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setIcon(s, null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+
+    // try null key
+    pass = false;
+    try
+      {
+        StyleConstants.setIcon(null, icon1);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setItalic.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setItalic.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setItalic.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setItalic.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setItalic.java -- Tests for the setItalic() method in the StyleConstants 
+                     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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setItalic() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setItalic implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setItalic(s, true);
+    harness.check(StyleConstants.isItalic(s), true);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setItalic(null, true);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setLeftIndent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setLeftIndent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setLeftIndent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setLeftIndent.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setLeftIndent.java -- Tests for the setLeftIndent() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setLeftIndent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setLeftIndent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setLeftIndent(s, 4.0f);
+    harness.check(StyleConstants.getLeftIndent(s), 4.0f);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setLeftIndent(null, 2.0f);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setLineSpacing.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setLineSpacing.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setLineSpacing.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setLineSpacing.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setLineSpacing.java -- Tests for the setLineSpacing() method in the 
+                          StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setLineSpacing() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setLineSpacing implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setLineSpacing(s, 4.0f);
+    harness.check(StyleConstants.getLineSpacing(s), 4.0f);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setLineSpacing(null, 2.0f);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setRightIndent.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setRightIndent.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setRightIndent.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setRightIndent.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setRightIndent.java -- Tests for the setRightIndent() method in the 
+                         StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setRightIndent() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setRightIndent implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setRightIndent(s, 4.0f);
+    harness.check(StyleConstants.getRightIndent(s), 4.0f);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setRightIndent(null, 2.0f);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setSpaceAbove.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setSpaceAbove.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setSpaceAbove.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setSpaceAbove.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setLineSpacing.java -- Tests for the setLineSpacing() method in the 
+                          StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setSpaceAbove() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setSpaceAbove implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setSpaceAbove(s, 4.0f);
+    harness.check(StyleConstants.getSpaceAbove(s), 4.0f);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setSpaceAbove(null, 2.0f);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setSpaceBelow.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setSpaceBelow.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setSpaceBelow.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setSpaceBelow.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setSpaceBelow.java -- Tests for the setSpaceBelow() method in the 
+                          StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setSpaceBelow() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setSpaceBelow implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setSpaceBelow(s, 4.0f);
+    harness.check(StyleConstants.getSpaceBelow(s), 4.0f);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setSpaceBelow(null, 2.0f);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setStrikeThrough.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setStrikeThrough.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setStrikeThrough.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setStrikeThrough.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setStrikeThrough.java -- Tests for the setStrikeThrough() method in the 
+                            StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setStrikeThrough() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setStrikeThrough implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setStrikeThrough(s, true);
+    harness.check(StyleConstants.isStrikeThrough(s), true);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setStrikeThrough(null, true);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setSubscript.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setSubscript.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setSubscript.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setSubscript.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setSubscript.java -- Tests for the setSubscript() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setSubscript() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setSubscript implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setSubscript(s, true);
+    harness.check(StyleConstants.isSubscript(s), true);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setSubscript(null, true);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setSuperscript.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setSuperscript.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setSuperscript.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setSuperscript.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setSuperscript.java -- Tests for the setSuperscript() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setSuperscript() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setSuperscript implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setSuperscript(s, true);
+    harness.check(StyleConstants.isSuperscript(s), true);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setSuperscript(null, true);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setTabSet.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setTabSet.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setTabSet.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setTabSet.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,83 @@
+/* setTabSet.java -- Tests for the setTabSet() method in the StyleConstants 
+                     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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+import javax.swing.text.TabSet;
+import javax.swing.text.TabStop;
+
+/**
+ * Some checks for the setTabSet() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setTabSet implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    TabStop[] tabs1 = new TabStop[] {new TabStop(8.0f)};
+    TabSet ts1 = new TabSet(tabs1);
+    StyleConstants.setTabSet(s, ts1);
+    harness.check(StyleConstants.getTabSet(s), ts1);
+    
+    // try null value
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setTabSet(s, null);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+
+    // try null key
+    pass = false;
+    try
+      {
+        StyleConstants.setTabSet(null, ts1);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/StyleConstants/setUnderline.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/StyleConstants/setUnderline.java
diff -N gnu/testlet/javax/swing/text/StyleConstants/setUnderline.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/StyleConstants/setUnderline.java	17 Jan 2006 10:00:57 -0000
@@ -0,0 +1,67 @@
+/* setUnderline.java -- Tests for the setUnderline() method in the 
+                        StyleConstants 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.text.StyleConstants;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+/**
+ * Some checks for the setUnderline() method in the {@link StyleConstants} 
+ * class.
+ */
+public class setUnderline implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    SimpleAttributeSet s = new SimpleAttributeSet();
+    
+    // check local setting
+    StyleConstants.setUnderline(s, true);
+    harness.check(StyleConstants.isUnderline(s), true);
+    
+    // try null argument
+    boolean pass = false;
+    try
+      {
+        StyleConstants.setUnderline(null, true);
+      }
+    catch (NullPointerException e)
+      {
+        pass = true;  
+      }
+    harness.check(pass);    
+  }
+
+}
\ No newline at end of file

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