//@@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 25 dec", TypicalTestTasks.task7);        
    }
*/
 
    @Test
    public void show_priorityList() {
        assertShowResult("show p/high");
    }

    @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, TypicalTestTasks.task2);
    }
    
    @Test
    public void show_OverDue() {
    	 assertShowResult("show overdue");
    }

    private void assertShowResult(String command, TestTask... expectedHits ) {
        commandBox.runCommand(command);
        assertListSize(expectedHits.length);
        assertResultMessage(expectedHits.length + " task(s) listed!");
        assertTrue(taskListPanel.isListMatching(expectedHits));
    }
}
@@ -292,19 +292,17 @@
 iTest %7B%0A
-/*
 %0A
+
     @Tes
@@ -945,14 +945,11 @@
   %7D%0A
-*/ 
   %0A
+
     
@@ -1111,14 +1111,12 @@
   %7D%0A
-/*
    %0A
+
     
@@ -1460,14 +1460,9 @@
   %7D%0A
-*/%0A/*
 %0A
+
     
@@ -1533,16 +1533,54 @@
 show 25 
+oct%22);%0A    %09assertShowResult(%22show 31 
 dec%22, Ty
@@ -1602,17 +1602,12 @@
 task
-7);      
+10);
   %0A 
@@ -1615,11 +1615,8 @@
   %7D%0A
-*/%0A
  %0A  
@@ -1698,24 +1698,322 @@
 w p/high%22);%0A
+        assertShowResult(%22show p/med%22);%0A        assertShowResult(%22show p/low%22, TypicalTestTasks.task1, TypicalTestTasks.task2, TypicalTestTasks.task3, TypicalTestTasks.task4, TypicalTestTasks.task5, TypicalTestTasks.task6, TypicalTestTasks.task7, TypicalTestTasks.task10, TypicalTestTasks.task11);%0A
     %7D%0A%0A    @
@@ -2718,16 +2718,16 @@
 ength);%0A
+
         
@@ -2793,72 +2793,8 @@
 %22);%0A
-        assertTrue(taskListPanel.isListMatching(expectedHits));%0A
     

Fix ShowCommandTest