SeasonalNaivePointForecaster implements SeasonalPointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val oldValue = this.buffer.updateWhilePadding(metricData); return getPreviousValueOrNull(oldValue); } SeasonalNaivePointForecaster(SeasonalNaivePointForecasterParams params); @Override PointForecast forecast(MetricData metricData); @Override int getCycleLength(); @Override int getIntervalLength();  }
@Test(expected = IllegalArgumentException.class) public void testForecast_nullMetricData() { subject.forecast(null); }