77787980818283848586
} @Test public void test_createRateAggregator() { RateAggregator aggregator = AggregatorFactory.createRateAggregator(TimeUnit.DAYS); assertThat(aggregator.getName(), equalTo("rate")); assertThat(aggregator.getUnit(), equalTo(TimeUnit.DAYS)); }
151152153154155156157
* @param unit unit of time * @return rate aggregator */ public static RateAggregator createRateAggregator(TimeUnit unit) { return new RateAggregator(unit); }