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