@Override public int getSprintMP(boolean gravity, boolean ignoreheat, boolean ignoremodulararmor) { if (game != null && game.getOptions() .booleanOption(OptionsConstants.ADVGRNDMOV_VEHICLE_ADVANCED_MANEUVERS)) { if (hasArmedMASC()) { return (int) Math.ceil(getWalkMP(gravity, ignoreheat, ignoremodulararmor) * 2.5); } else { return getSprintMPwithoutMASC(gravity, ignoreheat, ignoremodulararmor); } } else { return getRunMP(gravity, ignoreheat, ignoremodulararmor); } }
Mockito.when(mockTank.getRunMP()).thenReturn(6); Mockito.when(mockTank.isImmobile()).thenReturn(false); Mockito.when(mockTank.isShutDown()).thenReturn(false);