@Test public void testHandlePositionUpdate() { final Maneuver maneuver = MockUtils.mockManeuver(); GuidanceManeuverListener listener = mock(GuidanceManeuverListener.class); mGuidanceManeuverPresenter.addListener(listener); when(mNavigationManager.getNextManeuver()).thenReturn(maneuver); when(mNavigationManager.getNextManeuverDistance()).thenReturn(200L); mGuidanceManeuverPresenter.handlePositionUpdate(); verify(listener).onDataChanged(any()); }
@Override public void handlePositionUpdate() { handleManeuverEvent(); }
GuidanceManeuverPresenter extends BaseGuidancePresenter { @Override public void handlePositionUpdate() { handleManeuverEvent(); } }
GuidanceManeuverPresenter extends BaseGuidancePresenter { @Override public void handlePositionUpdate() { handleManeuverEvent(); } GuidanceManeuverPresenter(Context context, NavigationManager navigationManager, Route route); }
GuidanceManeuverPresenter extends BaseGuidancePresenter { @Override public void handlePositionUpdate() { handleManeuverEvent(); } GuidanceManeuverPresenter(Context context, NavigationManager navigationManager, Route route); @Override void handlePositionUpdate(); @Override void handleManeuverEvent(); void addListener(GuidanceManeuverListener listener); void removeListener(GuidanceManeuverListener listener); }
GuidanceManeuverPresenter extends BaseGuidancePresenter { @Override public void handlePositionUpdate() { handleManeuverEvent(); } GuidanceManeuverPresenter(Context context, NavigationManager navigationManager, Route route); @Override void handlePositionUpdate(); @Override void handleManeuverEvent(); void addListener(GuidanceManeuverListener listener); void removeListener(GuidanceManeuverListener listener);  }