/** @@author A0142130A **/
package guitests;

import org.junit.Test;

import seedu.taskell.logic.commands.ViewCalendarCommand;
import seedu.taskell.logic.commands.ViewHistoryCommand;

public class ViewCalendarCommandTest extends TaskManagerGuiTest {
    
    @Test
    public void viewCal_success() {
        String expected = ViewCalendarCommand.MESSAGE_SUCCESS;
        
        commandBox.runCommand("calendar");
        assertResultMessage(expected);
        
        commandBox.runCommand("cal");
        assertResultMessage(expected);
    }
    
    @Test
    public void defaultViewCal_success() {
        
        commandBox.runCommand("hist");
        assertResultMessage(ViewHistoryCommand.MESSAGE_SUCCESS);
        
        commandBox.runCommand("cal");
        assertResultMessage(ViewCalendarCommand.MESSAGE_SUCCESS);
    }
}

@@ -549,291 +549,6 @@
    %0A
-    @Test%0A    public void defaultViewCal_success() %7B%0A        %0A        commandBox.runCommand(%22hist%22);%0A        assertResultMessage(ViewHistoryCommand.MESSAGE_SUCCESS);%0A        %0A        commandBox.runCommand(%22cal%22);%0A        assertResultMessage(ViewCalendarCommand.MESSAGE_SUCCESS);%0A    %7D%0A
 %7D%0A

remove test that cannot work (unable to get calendar from display)