@Test public void testCheckCurrentWavesNoWaves() { WaveManager waveManager = newWaveManager(); CurrentWaveListener listener = mock(CurrentWaveListener.class); waveManager.checkCurrentWaves(100L, listener); verify(listener, never()).onCurrentWave((Wave) any()); }
public void checkCurrentWaves( long currentTime, CurrentWaveListener listener) { for (Wave w : _waves) { if (w.fireTime == currentTime) { listener.onCurrentWave(w); } } }
WaveManager { public void checkCurrentWaves( long currentTime, CurrentWaveListener listener) { for (Wave w : _waves) { if (w.fireTime == currentTime) { listener.onCurrentWave(w); } } } }
WaveManager { public void checkCurrentWaves( long currentTime, CurrentWaveListener listener) { for (Wave w : _waves) { if (w.fireTime == currentTime) { listener.onCurrentWave(w); } } } WaveManager(); }
WaveManager { public void checkCurrentWaves( long currentTime, CurrentWaveListener listener) { for (Wave w : _waves) { if (w.fireTime == currentTime) { listener.onCurrentWave(w); } } } WaveManager(); void initRound(); void addWave(Wave wave); void checkCurrentWaves(
      long currentTime, CurrentWaveListener listener); void forAllWaves(AllWaveListener listener); void checkActiveWaves(
      long currentTime, RobotState lastScanState, WaveBreakListener listener); Wave findClosestWave(Point2D.Double targetLocation, long currentTime,
      boolean onlyFiring, String botName, double bulletPower); Wave findSurfableWave(
      int surfIndex, RobotState targetState, WavePosition unsurfablePosition); Wave getPastWave(int x); Wave getWaveByFireTime(long fireTime); Wave interpolateWaveByFireTime(long fireTime, long currentTime,
      double sourceHeading, double sourceVelocity, RobotStateLog stateLog,
      BattleField battleField, MovementPredictor predictor); long getLastFireTime(); int size(); }
WaveManager { public void checkCurrentWaves( long currentTime, CurrentWaveListener listener) { for (Wave w : _waves) { if (w.fireTime == currentTime) { listener.onCurrentWave(w); } } } WaveManager(); void initRound(); void addWave(Wave wave); void checkCurrentWaves(
      long currentTime, CurrentWaveListener listener); void forAllWaves(AllWaveListener listener); void checkActiveWaves(
      long currentTime, RobotState lastScanState, WaveBreakListener listener); Wave findClosestWave(Point2D.Double targetLocation, long currentTime,
      boolean onlyFiring, String botName, double bulletPower); Wave findSurfableWave(
      int surfIndex, RobotState targetState, WavePosition unsurfablePosition); Wave getPastWave(int x); Wave getWaveByFireTime(long fireTime); Wave interpolateWaveByFireTime(long fireTime, long currentTime,
      double sourceHeading, double sourceVelocity, RobotStateLog stateLog,
      BattleField battleField, MovementPredictor predictor); long getLastFireTime(); int size();  }