@@ -0,0 +1,2288 @@
+package io.github.plastix.forage.ui.navigate;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0A%0Aimport static org.mockito.Matchers.anyDouble;%0Aimport static org.mockito.Mockito.never;%0Aimport static org.mockito.Mockito.times;%0Aimport static org.mockito.Mockito.verify;%0A%0Apublic class NavigatePresenterTest %7B%0A%0A    private NavigatePresenter navigatePresenter;%0A%0A    @Mock%0A    private NavigateView navigateView;%0A%0A    @Before%0A    public void beforeEachTest() %7B%0A        MockitoAnnotations.initMocks(this);%0A        navigatePresenter = new NavigatePresenter();%0A        navigatePresenter.setView(navigateView);%0A    %7D%0A%0A    @Test%0A    public void navigate_invalidLatitudeShouldOnlyCallErrorLatitude() %7B%0A        String lat = %22latitude%22;%0A        String lon = %220%22;%0A        navigatePresenter.navigate(lat, lon);%0A%0A        verify(navigateView, times(1)).errorParsingLatitude();%0A        verify(navigateView, never()).errorParsingLongitude();%0A        verify(navigateView, never()).openCompassScreen(anyDouble(), anyDouble());%0A    %7D%0A%0A    @Test%0A    public void navigate_invalidLongitudeShouldOnlyCallErrorLongitude() %7B%0A        String lat = %220%22;%0A        String lon = %22longitude%22;%0A        navigatePresenter.navigate(lat, lon);%0A%0A        verify(navigateView, never()).errorParsingLatitude();%0A        verify(navigateView, times(1)).errorParsingLongitude();%0A        verify(navigateView, never()).openCompassScreen(anyDouble(), anyDouble());%0A    %7D%0A%0A%0A    @Test%0A    public void navigate_invalidLocationShouldErrorBoth() %7B%0A        String lat = %22latitude%22;%0A        String lon = %22longitude%22;%0A        navigatePresenter.navigate(lat, lon);%0A%0A        verify(navigateView, times(1)).errorParsingLatitude();%0A        verify(navigateView, times(1)).errorParsingLongitude();%0A        verify(navigateView, never()).openCompassScreen(anyDouble(), anyDouble());%0A    %7D%0A%0A    @Test%0A    public void navigate_validDataShouldOpenCompassScreen() %7B%0A        String lat = %220%22;%0A        String lon = %220%22;%0A        navigatePresenter.navigate(lat, lon);%0A%0A        verify(navigateView, never()).errorParsingLatitude();%0A        verify(navigateView, never()).errorParsingLongitude();%0A        verify(navigateView, times(1)).openCompassScreen(Double.valueOf(lat), Double.valueOf(lon));%0A    %7D%0A%0A%0A%7D%0A

Add NavigatePresenter unit tests