@@ -0,0 +1,1301 @@
+package guitests;%0A%0Aimport java.util.ArrayList;%0A%0Aimport org.junit.Test;%0A%0Aimport seedu.taskell.logic.commands.ViewHistoryCommand;%0Aimport seedu.taskell.model.HistoryManager;%0Aimport seedu.taskell.ui.DisplayPanel;%0A%0Apublic class ViewHistoryCommandTest extends TaskManagerGuiTest %7B%0A    %0A    @Test%0A    public void viewHistory() %7B%0A        String expectedMessage = ViewHistoryCommand.MESSAGE_SUCCESS;%0A        %0A        commandBox.runCommand(%22add smth by tmr%22);%0A        commandBox.runCommand(%22history%22);%0A        assertResultMessage(expectedMessage);%0A        String text = displayPanel.getText();%0A        assertListMatch(text, HistoryManager.getInstance().getListCommandText());%0A        %0A        commandBox.runCommand(%22edit-desc 1 find socks%22);%0A        commandBox.runCommand(%22hist%22);%0A        assertResultMessage(expectedMessage);%0A        text = displayPanel.getText();%0A        assertListMatch(text, HistoryManager.getInstance().getListCommandText());%0A    %7D%0A%0A    private void assertListMatch(String result, ArrayList%3CString%3E list) %7B%0A        String expected = DisplayPanel.MESSAGE_DISPLAY_HISTORY;%0A        %0A        for (int i=0; i%3Clist.size(); i++) %7B%0A            int index = i+1;%0A            expected = expected + index + %22. %22 + list.get(i) + %22%5Cn%22;%0A        %7D%0A        %0A        assert expected.equals(result);%0A    %7D%0A%7D%0A

add tests for view history