package ca.six.todo.tasks;

import org.junit.Test;

import static org.junit.Assert.*;

public class TasksPresenterTest {

    @Test
    public void testFirstEnters_listShouldBeEmpty(){

    }

}
@@ -42,148 +42,1181 @@
 nit.
-Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class TasksPresenterTest %7B%0A%0A    @Test%0A    public void testFirstEnters_listShouldBeEmpty()%7B%0A
+Before;%0Aimport org.junit.Test;%0Aimport org.mockito.ArgumentCaptor;%0Aimport org.mockito.Captor;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0A%0Aimport ca.six.todo.data.Task;%0Aimport ca.six.todo.data.source.TasksDataSource;%0Aimport ca.six.todo.data.source.TasksRepository;%0Aimport static org.junit.Assert.*;%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.Mockito.when;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class TasksPresenterTest %7B%0A    @Mock TasksContract.View view;%0A    @Mock TasksRepository repo;%0A    @Captor ArgumentCaptor%3CTasksDataSource.LoadTasksCallback%3E captor;%0A%0A    @Before%0A    public void setUp() %7B%0A        MockitoAnnotations.initMocks(this);%0A        when(view.isActive()).thenReturn(true);%0A    %7D%0A%0A    @Test%0A    public void testFirstEnters_listShouldBeEmpty()%7B%0A        TasksPresenter presenter = new TasksPresenter(repo, view);%0A        presenter.start();%0A%0A        verify(view).setLoadingIndicator(true);%0A        verify(repo).refreshTasks();%0A%0A        verify(repo).getTasks(captor.capture());%0A        captor.getValue().onTasksLoaded(new ArrayList%3CTask%3E());%0A%0A        // default filter is : All_Tasks%0A        verify(view).showNoTasks();
 %0A   
@@ -1220,8 +1220,9 @@
     %7D%0A%0A%7D
+%0A

write unit test code