public void testEndingWithCancel() { assertSame("Wizard not on starting page", wizard.page1, dialog.getCurrentPage()); // TheTestWizard's performFinish() sets DID_FINISH to true, ensure it was not called wizard.performCancel(); assertEquals("Wizard finished but should not have", false, DID_FINISH); dialog.cancelPressed(); assertEquals("Wizard performed finished but should not have", false, DID_FINISH); }