@@ -0,0 +1,1161 @@
+package ca.six.todo.addedittask;%0A%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0A%0Aimport ca.six.todo.data.source.TasksDataSource;%0A%0Apublic class AddEditTaskPresenterTest %7B%0A    @Mock AddEditTaskContract.View view;%0A    @Mock TasksDataSource repo;%0A%0A    @Before%0A    public void setUp()%7B%0A        MockitoAnnotations.initMocks(this);%0A    %7D%0A%0A%0A    // AddEditTaskPresenter presenter = new AddEditTaskPresenter(null, repo, view, true);%0A    @Test%0A    public void start() throws Exception %7B%0A        AddEditTaskPresenter presenter = new AddEditTaskPresenter(null, repo, view, true);%0A%0A    %7D%0A%0A    @Test%0A    public void saveTask() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void populateTask() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void onTaskLoaded() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void onDataNotAvailable() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void isDataMissing() throws Exception %7B%0A%0A    %7D%0A%0A%7D%0A%0A/*%0AIssue01. init repo need a Context!%0A: mock a repo! (even the data is already a mock version)%0A%0AIssue02. test all the public methods?%0A: No. start() method is an example%0A%0A%0A*/

write unit test code