@@ -0,0 +1,1190 @@
+package ca.six.todo;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.mockito.internal.configuration.MockAnnotationProcessor;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport ca.six.todo.add_task.AddTaskActivity;%0Aimport ca.six.todo.add_task.AddTaskPresenter;%0Aimport ca.six.todo.model.ITaskManager;%0Aimport ca.six.todo.model.Task;%0A%0A/**%0A * Created by songzhw on 2016-05-16.%0A */%0Apublic class AddTaskPresenterTest %7B%0A    private List%3CTask%3E data;%0A    private AddTaskPresenter presenter;%0A    @Mock%0A    public AddTaskActivity view;%0A    @Mock%0A    public ITaskManager model;%0A%0A    @Before%0A    public void setUp()%7B%0A        data = new ArrayList%3C%3E();%0A        data.add(new Task(%22first%22));%0A        data.add(new Task(%22task two%22));%0A%0A        MockitoAnnotations.initMocks(this);%0A        presenter = new AddTaskPresenter(view);%0A        presenter.model = model;%0A%0A        Mockito.when(model.getTasks()).thenReturn(data);%0A    %7D%0A%0A    @Test%0A    public void testAdd()%7B%0A        presenter.addTask(%22third%22);%0A        Mockito.verify(model).saveTask(%22third%22);%0A        Mockito.verify(view).finishAdd();%0A    %7D%0A%7D%0A

add presents for presenter