示例#1
0
  public void testText() throws Exception {
    panel.setText("blah");
    assertEquals("blah", panel.getText());
    assertEquals("blah", panel.getTextAccessor().getText());

    panel.getTextAccessor().setText("foo");
    assertEquals("foo", panel.getText());
  }
示例#2
0
 public void testConstructor() throws Exception {
   assertSame(prop, panel.getProp());
   assertEquals(TextPaneTextAccessor.class, panel.getTextAccessor().getClass());
 }