@Test(expected = IllegalArgumentException.class) public void testForecast_nullMetricData() { forecasterUnderTest.forecast(null); }
@Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val forecastMetricData = lastMetricData; this.lastMetricData = metricData; return forecastMetricData == null ? null : new PointForecast(forecastMetricData.getValue(), false); }
NaivePointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val forecastMetricData = lastMetricData; this.lastMetricData = metricData; return forecastMetricData == null ? null : new PointForecast(forecastMetricData.getValue(), false); } }
NaivePointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val forecastMetricData = lastMetricData; this.lastMetricData = metricData; return forecastMetricData == null ? null : new PointForecast(forecastMetricData.getValue(), false); }  }
NaivePointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val forecastMetricData = lastMetricData; this.lastMetricData = metricData; return forecastMetricData == null ? null : new PointForecast(forecastMetricData.getValue(), false); }  @Override PointForecast forecast(MetricData metricData); }
NaivePointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val forecastMetricData = lastMetricData; this.lastMetricData = metricData; return forecastMetricData == null ? null : new PointForecast(forecastMetricData.getValue(), false); }  @Override PointForecast forecast(MetricData metricData);  }