@@ -0,0 +1,1825 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Test;%0A%0Aimport javafx.scene.input.KeyCode;%0A%0Apublic class RetrieveCommandHistoryTest extends GeeKeepGuiTest %7B%0A%0A    private static final String COMMAND_ADD_LEARN_HASKELL = %22add Learn Haskell%22;%0A    private static final String COMMAND_ADD_BUY_SPECTACLES = %22add Buy spectacles%22;%0A    private static final String COMMAND_DELETE_1 = %22delete 1%22;%0A%0A    @Test%0A    public void commandBox_up_retrieve_previous_history() %7B%0A        commandBox.runCommand(COMMAND_ADD_LEARN_HASKELL);%0A        commandBox.runCommand(COMMAND_DELETE_1);%0A        commandBox.runCommand(COMMAND_ADD_BUY_SPECTACLES);%0A        commandBox.type(KeyCode.A, KeyCode.D, KeyCode.D);%0A        commandBox.pressEnter();%0A        commandBox.type(KeyCode.UP);%0A        assertEquals(COMMAND_ADD_BUY_SPECTACLES, commandBox.getCommandInput());%0A        commandBox.type(KeyCode.UP);%0A        assertEquals(COMMAND_ADD_LEARN_HASKELL, commandBox.getCommandInput());%0A        commandBox.type(KeyCode.UP);%0A        assertEquals(COMMAND_ADD_LEARN_HASKELL, commandBox.getCommandInput());%0A    %7D%0A%0A    @Test%0A    public void commandBox_down_retrieve_next_history() %7B%0A        commandBox.runCommand(COMMAND_ADD_LEARN_HASKELL);%0A        commandBox.runCommand(COMMAND_DELETE_1);%0A        commandBox.runCommand(COMMAND_ADD_BUY_SPECTACLES);%0A        commandBox.type(KeyCode.A, KeyCode.D, KeyCode.D);%0A        commandBox.pressEnter();%0A        commandBox.type(KeyCode.UP);%0A        commandBox.type(KeyCode.UP);%0A        commandBox.type(KeyCode.DOWN);%0A        assertEquals(COMMAND_ADD_BUY_SPECTACLES, commandBox.getCommandInput());%0A        commandBox.type(KeyCode.DOWN);%0A        assertEquals(%22add%22, commandBox.getCommandInput());%0A        commandBox.type(KeyCode.DOWN);%0A        assertEquals(%22add%22, commandBox.getCommandInput());%0A    %7D%0A%0A%7D%0A

Add RetrieveCommandHistoryTest