@Test void getCurrentPage() { Wizard wizard = new Wizard(); WizardPage page = new TestWizardPage(); wizard.addPage(page); assertEquals(page, wizard.getCurrentPage()); }
public WizardPage getCurrentPage() { if (pages.isEmpty()) { throw new IllegalStateException(NO_WIZARD_PAGES_DEFINED_MSG); } return pages.get(currentPageIndex); }
Wizard implements Serializable { public WizardPage getCurrentPage() { if (pages.isEmpty()) { throw new IllegalStateException(NO_WIZARD_PAGES_DEFINED_MSG); } return pages.get(currentPageIndex); } }
Wizard implements Serializable { public WizardPage getCurrentPage() { if (pages.isEmpty()) { throw new IllegalStateException(NO_WIZARD_PAGES_DEFINED_MSG); } return pages.get(currentPageIndex); }  }
Wizard implements Serializable { public WizardPage getCurrentPage() { if (pages.isEmpty()) { throw new IllegalStateException(NO_WIZARD_PAGES_DEFINED_MSG); } return pages.get(currentPageIndex); }  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 WizardPage getCurrentPage() { if (pages.isEmpty()) { throw new IllegalStateException(NO_WIZARD_PAGES_DEFINED_MSG); } return pages.get(currentPageIndex); }  void addPage(WizardPage page); List<WizardPage> getPages(); WizardPage getCurrentPage(); boolean isLastPage(); boolean isFirstPage(); void next(); void previous(); WizardButton getNextButton(); WizardButton getPreviousButton();  }