예제 #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());
 }