コード例 #1
0
  @Test
  public void next() {
    assertTrue("Next button should be enabled", wizardDialog.isNextEnabled());
    wizardDialog.next();

    CLabel label = new DefaultCLabel();
    assertThat(label.getText(), is("B"));
  }
コード例 #2
0
 @Test
 public void next_notEnabled() {
   wizardDialog.next();
   assertFalse("Next button should be disabled", wizardDialog.isNextEnabled());
 }