@Test public void back() { wizardDialog.next(); assertTrue("Back button should be enabled", wizardDialog.isBackEnabled()); wizardDialog.back(); CLabel label = new DefaultCLabel(); assertThat(label.getText(), is("A")); }
@Test public void back_notEnabled() { assertFalse("Back button should be disabled", wizardDialog.isBackEnabled()); }