@Test public void testAggregateResultTimestamp() { AggregateResult result1 = new AggregateResult(); result1.setStartTimestamp(2L); result1.setStopTimestamp(4L); AggregateResult result2 = new AggregateResult(); result2.setStartTimestamp(1L); result2.setStopTimestamp(3L); AggregateResultCallback callback = new AggregateResultCallbackImpl(new ArrayList<AggregateFunctionType>()); callback.update(null, null, result1); callback.update(null, null, result2); AggregateResult result3 = callback.result(); Assert.assertEquals(1L, result3.getStartTimestamp()); Assert.assertEquals(4L, result3.getStopTimestamp()); }
throw new IOException(t); return callback.result();
throw new IOException(t); return callback.result();