Skip to content

Commit

Permalink
Revert "Added test for raising ExitAppRequestEvent"
Browse files Browse the repository at this point in the history
This reverts commit 2e3363d.
  • Loading branch information
ChooJeremy committed Oct 17, 2018
1 parent 2e3363d commit 8a3f779
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/test/java/seedu/address/ui/MainWindowCloseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ public void close_externalRequest_exitAppRequestEventPosted() {
assertTrue(eventsCollectorRule.eventsCollector.getSize() == 1);
}

@Test
public void close_event_exitAppRequestEventPosted() {
mainWindowHandle.closeMainWindoeEvent();
assertTrue(eventsCollectorRule.eventsCollector.getMostRecent() instanceof ExitAppRequestEvent);
assertTrue(eventsCollectorRule.eventsCollector.getSize() == 1);
}

/**
* A handle for an empty {@code MainWindow}. The components in {@code MainWindow} are not initialized.
*/
Expand All @@ -86,12 +79,5 @@ private void clickOnMenuExitButton() {
private void closeMainWindowExternally() {
guiRobot.interact(() -> stage.fireEvent(new WindowEvent(stage, WindowEvent.WINDOW_CLOSE_REQUEST)));
}

/**
* Closes the {@code MainWindow} through sending an ExitAppRequestEvent to the app.
*/
private void closeMainWindoeEvent() {
guiRobot.interact(() -> mainWindow.raise(new ExitAppRequestEvent()));
}
}
}

0 comments on commit 8a3f779

Please sign in to comment.