@Test void getPreviousButton() { Wizard wizard = new Wizard(); wizard.addPage(new TestWizardPage()); WizardButton prevButton = wizard.getPreviousButton(); assertNotNull(prevButton); assertFalse(prevButton.isEnabled()); assertEquals("Previous", prevButton.getTitle()); }
public WizardButton getPreviousButton() { return new WizardButton(PREVIOUS_BUTTON_ID, "Previous", !isFirstPage(), "/previous"); }
Wizard implements Serializable { public WizardButton getPreviousButton() { return new WizardButton(PREVIOUS_BUTTON_ID, "Previous", !isFirstPage(), "/previous"); } }
Wizard implements Serializable { public WizardButton getPreviousButton() { return new WizardButton(PREVIOUS_BUTTON_ID, "Previous", !isFirstPage(), "/previous"); }  }
Wizard implements Serializable { public WizardButton getPreviousButton() { return new WizardButton(PREVIOUS_BUTTON_ID, "Previous", !isFirstPage(), "/previous"); }  void addPage(WizardPage page); List<WizardPage> getPages(); WizardPage getCurrentPage(); boolean isLastPage(); boolean isFirstPage(); void next(); void previous(); WizardButton getNextButton(); WizardButton getPreviousButton(); }
Wizard implements Serializable { public WizardButton getPreviousButton() { return new WizardButton(PREVIOUS_BUTTON_ID, "Previous", !isFirstPage(), "/previous"); }  void addPage(WizardPage page); List<WizardPage> getPages(); WizardPage getCurrentPage(); boolean isLastPage(); boolean isFirstPage(); void next(); void previous(); WizardButton getNextButton(); WizardButton getPreviousButton();  }