@Test public void next() { assertTrue("Next button should be enabled", wizardDialog.isNextEnabled()); wizardDialog.next(); CLabel label = new DefaultCLabel(); assertThat(label.getText(), is("B")); }
@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")); }