@Test public void testHandleSpeedExceededEnd() { GuidanceSpeedListener listener = mock(GuidanceSpeedListener.class); mCurrentSpeedPresenter.addListener(listener); when(mPositioningManager.hasValidPosition()).thenReturn(false); mCurrentSpeedPresenter.handleSpeedExceededEnd(10); verify(listener).onDataChanged(any()); }
@Override protected void handleSpeedExceededEnd(float speedLimit) { mPreviousSpeedLimit = speedLimit; updateCurrentSpeedData(speedLimit); }
GuidanceSpeedPresenter extends BaseGuidancePresenter { @Override protected void handleSpeedExceededEnd(float speedLimit) { mPreviousSpeedLimit = speedLimit; updateCurrentSpeedData(speedLimit); } }
GuidanceSpeedPresenter extends BaseGuidancePresenter { @Override protected void handleSpeedExceededEnd(float speedLimit) { mPreviousSpeedLimit = speedLimit; updateCurrentSpeedData(speedLimit); } GuidanceSpeedPresenter(@NonNull NavigationManager navigationManager,
            @NonNull PositioningManager positioningManager); }
GuidanceSpeedPresenter extends BaseGuidancePresenter { @Override protected void handleSpeedExceededEnd(float speedLimit) { mPreviousSpeedLimit = speedLimit; updateCurrentSpeedData(speedLimit); } GuidanceSpeedPresenter(@NonNull NavigationManager navigationManager,
            @NonNull PositioningManager positioningManager); @Override void resume(); @Override void pause(); void addListener(GuidanceSpeedListener listener); void removeListener(GuidanceSpeedListener listener); }
GuidanceSpeedPresenter extends BaseGuidancePresenter { @Override protected void handleSpeedExceededEnd(float speedLimit) { mPreviousSpeedLimit = speedLimit; updateCurrentSpeedData(speedLimit); } GuidanceSpeedPresenter(@NonNull NavigationManager navigationManager,
            @NonNull PositioningManager positioningManager); @Override void resume(); @Override void pause(); void addListener(GuidanceSpeedListener listener); void removeListener(GuidanceSpeedListener listener);  }