*
* @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);