public void test(TestHarness harness)
{
// This test ensures that all properties are set
// to the default values.
Dialog dialog = new Dialog(new Frame());
harness.check(dialog.getAlignmentX(), 0.5);
harness.check(dialog.getAlignmentY(), 0.5);
harness.check(dialog.getComponentCount(), 0);
harness.check(dialog.getFocusableWindowState(), true);
harness.check(dialog.getFocusTraversalKeysEnabled(), true);
harness.check(dialog.getHeight(), 0);
harness.check(dialog.getIgnoreRepaint(), false);
harness.check(dialog.getWidth(), 0);
harness.check(dialog.getX(), 0);
harness.check(dialog.getY(), 0);
harness.check(dialog.getBackground(), null);
harness.check(dialog.getBounds(), new Rectangle());
harness.check(dialog.getDropTarget(), null);
harness.check(dialog.getFocusCycleRootAncestor(), null);
harness.check(dialog.getFocusOwner(), null);
harness.check(dialog.getFont(), null);
harness.check(dialog.getForeground(), null);
harness.check(dialog.getGraphics(), null);
harness.check(dialog.getInputMethodRequests(), null);
harness.check(dialog.getInsets(), new Insets(0, 0, 0, 0));
harness.check(dialog.getLayout().toString(),
"java.awt.BorderLayout[hgap=0,vgap=0]");
harness.check(dialog.getLocation(), new Point());
harness.check(dialog.getMaximumSize(),
new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE));
harness.check(dialog.getMinimumSize(), new Dimension());
harness.check(dialog.getName(), "dialog0");
harness.check(dialog.getPreferredSize(), new Dimension());
harness.check(dialog.getSize(), new Dimension());
harness.check(dialog.getTitle(), "");
harness.check(dialog.getWarningString(), null);
harness.check(dialog.isActive(), false);
harness.check(dialog.isAlwaysOnTop(), false);
harness.check(dialog.isBackgroundSet(), false);
harness.check(dialog.isCursorSet(), true);
harness.check(dialog.isDisplayable(), false);
harness.check(dialog.isDoubleBuffered(), false);
harness.check(dialog.isEnabled(), true);
harness.check(dialog.isFocusable(), true);
harness.check(dialog.isFocusableWindow(), true);
harness.check(dialog.isFocusCycleRoot(), true);
harness.check(dialog.isFocused(), false);
harness.check(dialog.isFocusOwner(), false);
harness.check(dialog.isFocusTraversalPolicyProvider(), false);
harness.check(dialog.isFocusTraversalPolicySet(), true);
harness.check(dialog.isFontSet(), false);
harness.check(dialog.isForegroundSet(), false);
harness.check(dialog.isLightweight(), false);
harness.check(dialog.isMaximumSizeSet(), false);
harness.check(dialog.isMinimumSizeSet(), false);
harness.check(dialog.isModal(), false);
harness.check(dialog.isOpaque(), false); // Currently fails on Classpath
harness.check(dialog.isPreferredSizeSet(), false);
harness.check(dialog.isResizable(), true);
harness.check(dialog.isShowing(), false);
harness.check(dialog.isUndecorated(), false);
harness.check(dialog.isValid(), false);
harness.check(dialog.isVisible(), false);
}