//@@author A0142102E
package guitests;

import org.junit.Test;

import seedu.tasklist.commons.core.Messages;
import seedu.tasklist.testutil.TestTask;
import seedu.tasklist.testutil.TypicalTestTasks;

import static org.junit.Assert.assertTrue;

public class ShowCommandTest extends TaskListGuiTest {
/*
    @Test
    public void show_nonEmptyList() {
        assertShowResult("show all", TypicalTestTasks.task1, TypicalTestTasks.task2, TypicalTestTasks.task3, TypicalTestTasks.task4, TypicalTestTasks.task5, TypicalTestTasks.task6, TypicalTestTasks.task7, TypicalTestTasks.task10, TypicalTestTasks.task11); //no results
        
        //show after deleting one result
        commandBox.runCommand("delete 1");
        assertShowResult("show all", TypicalTestTasks.task2, TypicalTestTasks.task3, TypicalTestTasks.task4, TypicalTestTasks.task5, TypicalTestTasks.task6, TypicalTestTasks.task7, TypicalTestTasks.task10, TypicalTestTasks.task11);
    }
*/   
    @Test
    public void show_completedList() {
        commandBox.runCommand("done 1");
        assertShowResult("show complete", TypicalTestTasks.task1);
    }
/*   
    @Test
    public void show_uncompletedList() {
        commandBox.runCommand("done 2");
        assertShowResult("show incomplete", TypicalTestTasks.task1, TypicalTestTasks.task3, TypicalTestTasks.task4, TypicalTestTasks.task5, TypicalTestTasks.task6, TypicalTestTasks.task7, TypicalTestTasks.task10, TypicalTestTasks.task11);        
    }
*/    
    @Test
    public void show_datedList() {
    	assertShowResult("show 14 nov", TypicalTestTasks.task11);        
    }
/*  
    @Test
    public void show_priorityList() {
        assertShowResult("show p/high", TypicalTestTasks.task1, TypicalTestTasks.task2, TypicalTestTasks.task3, TypicalTestTasks.task6, TypicalTestTasks.task11);
    }
*/
    @Test
    public void show_emptyList(){
        commandBox.runCommand("clear");
        assertShowResult("show all"); //no results
    }

    @Test
    public void show_invalidCommand_fail() {
        commandBox.runCommand("showall");
        assertResultMessage(Messages.MESSAGE_UNKNOWN_COMMAND);
    }
    
    @Test
    public void show_Floating() {
    	 assertShowResult("show floating", TypicalTestTasks.task1);
    }
/*    
    @Test
    public void show_OverDue() {
    	 assertShowResult("show overdue", TypicalTestTasks.task5);
    }
*/
    private void assertShowResult(String command, TestTask... expectedHits ) {
        commandBox.runCommand(command);
        assertListSize(expectedHits.length);
        assertResultMessage(expectedHits.length + " task(s) listed!");
        assertTrue(taskListPanel.isListMatching(expectedHits));
    }
}
@@ -1465,20 +1465,19 @@
     %7D%0A*/
-    
+%0A/*
 %0A    @Te
@@ -1546,14 +1546,14 @@
 how 
-14 nov
+25 dec
 %22, T
@@ -1564,34 +1564,33 @@
 alTestTasks.task
-11
+7
 );        %0A    %7D
@@ -1590,19 +1590,19 @@
  %0A    %7D%0A
-/* 
+*/%0A
  %0A    @T
@@ -1685,129 +1685,8 @@
 igh%22
-, TypicalTestTasks.task1, TypicalTestTasks.task2, TypicalTestTasks.task3, TypicalTestTasks.task6, TypicalTestTasks.task11
 );%0A 
@@ -1686,26 +1686,24 @@
 gh%22);%0A    %7D%0A
-*/
 %0A    @Test%0A 
@@ -2102,32 +2102,56 @@
 lTestTasks.task1
+, TypicalTestTasks.task2
 );%0A    %7D%0A/*    %0A
@@ -2143,18 +2143,16 @@
 ;%0A    %7D%0A
-/*
     %0A   
@@ -2232,32 +2232,8 @@
 due%22
-, TypicalTestTasks.task5
 );%0A 
@@ -2237,18 +2237,16 @@
 ;%0A    %7D%0A
-*/
 %0A    pri

Fix ShowCommandTest