@@ -0,0 +1,1576 @@
+package seedu.address.logic.commands;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static seedu.address.commons.time.TypicalLocalDateTimes.UNIX_EPOCH;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0Aimport org.mockito.MockitoAnnotations;%0A%0Aimport seedu.address.model.Model;%0Aimport seedu.address.model.filter.FalseTaskPredicate;%0Aimport seedu.address.model.task.EventTask;%0A%0Apublic class ListCommandTest %7B%0A%0A    @Mock%0A    private Model model;%0A%0A    @Before%0A    public void setup() throws Exception %7B%0A        MockitoAnnotations.initMocks(this);%0A        Mockito.when(model.getEventTask(1)).thenReturn(new EventTask(%22Lunch with Bill Gates%22, UNIX_EPOCH,%0A                                                                     UNIX_EPOCH.plusHours(1)));%0A    %7D%0A%0A    @Test%0A    public void execute_withNullTaskPredicate_replacesTaskPredicate() %7B%0A        final ListCommand cmd = new ListCommand(null);%0A        final CommandResult result = cmd.execute(model);%0A        assertEquals(%22Listing all tasks.%22, result.feedbackToUser);%0A        Mockito.verify(model).setTaskPredicate(null);%0A    %7D%0A%0A    @Test%0A    public void execute_withNonNullTaskPredicate_replacesTaskPredicate() %7B%0A        final FalseTaskPredicate predicate = new FalseTaskPredicate();%0A        final ListCommand cmd = new ListCommand(predicate);%0A        final CommandResult result = cmd.execute(model);%0A        assertEquals(%22Listing all tasks matching filter: false task predicate%22, result.feedbackToUser);%0A        Mockito.verify(model).setTaskPredicate(predicate);%0A    %7D%0A%0A%7D%0A

Add ListCommandTest