package guitests;


import static seedu.jimi.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;

import org.junit.Test;

import seedu.jimi.logic.commands.ShowCommand;
//@@author A0138915X
public class ShowCommandTest extends AddressBookGuiTest {

    //@Test
    public void show_floatingTasks() {
        assertShowResult("show floating");
    }
    
    //tests dynamic day titles
    //@Test
    public void show_Tuesday() {
        assertShowResult("show Tuesday");
    }
    
    @Test
    public void show_invalidDay() {
        commandBox.runCommand("show floatingtasks");
        assertResultMessage(String.format(ShowCommand.MESSAGE_INVALID_SECTION));
    }

    private void assertShowResult(String command) {
        commandBox.runCommand(command);
        assertResultMessage("Displayed tasks and events.");
    }
}

@@ -139,34 +139,118 @@
 imi.
-logic.commands.ShowCommand
+commons.core.Messages;%0Aimport seedu.jimi.logic.commands.ShowCommand;%0Aimport seedu.jimi.model.task.ReadOnlyTask
 ;%0A//
@@ -327,26 +327,29 @@
 Test %7B%0A%0A    
-//
+%0A    
 @Test%0A    pu
@@ -377,24 +377,126 @@
 ngTasks() %7B%0A
+        ReadOnlyTask%5B%5D currentList = td.getTypicalTasks();%0A        int listSize = currentList.length;%0A
         asse
@@ -523,16 +523,26 @@
 loating%22
+, listSize
 );%0A    %7D
@@ -582,18 +582,16 @@
 les%0A    
-//
 @Test%0A  
@@ -660,16 +660,19 @@
 Tuesday%22
+, 0
 );%0A    %7D
@@ -912,16 +912,30 @@
  command
+, int listSize
 ) %7B%0A    
@@ -1002,37 +1002,71 @@
 age(
-%22Displayed tasks and events.%22
+String.format(Messages.MESSAGE_TASKS_LISTED_OVERVIEW, listSize)
 );%0A 

Fix ShowCommandTest not working