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