}
public void testConstructor4(TestHarness harness)
{
harness.checkPoint("(String, int, int)");
TextArea ta = new TextArea("ABC", 3, 7);
harness.check(ta.getText(), "ABC");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 3);
harness.check(ta.getColumns(), 7);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_BOTH);
// try null
ta = new TextArea(null, 3, 7);
harness.check(ta.getText(), "");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 3);
harness.check(ta.getColumns(), 7);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_BOTH);
// try negative rows
ta = new TextArea("ABC", -3, 7);
harness.check(ta.getText(), "ABC");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 0);
harness.check(ta.getColumns(), 7);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_BOTH);
// try negative columns
ta = new TextArea("ABC", 3, -7);
harness.check(ta.getText(), "ABC");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 3);
harness.check(ta.getColumns(), 0);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_BOTH);
}