@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")); }
@Override public void processAdditionalWizardPages(WizardDialog dialog) { dialog.next(); dialog.next(); dialog.next(); new LabeledCombo("Type:") .setSelection( JBossPortletCapabilitiesWizardPageFillingTask.Type.RUNTIME_PROVIDER.toString()); dialog.next(); dialog.next(); new LabeledCombo("Database Type:").setSelection("HSQL"); new LabeledCombo("Connection profile:").setSelection(SWTTestExt.configuredState.getDB().name); dialog.next(); new LabeledCombo("Type:") .setSelection( JBossJSFPortletCapabilitiesWizardPageFillingTask.Type.RUNTIME_PROVIDER.toString()); processWizardPageJSFPortletCapabilities(); }
@Test public void next_notEnabled() { wizardDialog.next(); assertFalse("Next button should be disabled", wizardDialog.isNextEnabled()); }