assertEquals(OVERALL_PROCESSED, aggregratedResult.getTotalPayloadProcessed());
}
public void testComputeThroughput()
{
ParticipantResult result1 = new ParticipantResult();
result1.setStartDate(new Date(PARTICIPANT1_STARTDATE));
result1.setEndDate(new Date(PARTICIPANT1_ENDDATE));
result1.setTotalPayloadProcessed(PARTICIPANT1_TOTAL_PROCESSED);
ParticipantResult result2 = new ParticipantResult();
result2.setStartDate(new Date(PARTICIPANT2_STARTDATE));
result2.setEndDate(new Date(PARTICIPANT2_ENDDATE));
result2.setTotalPayloadProcessed(PARTICIPANT2_TOTAL_PROCESSED);
_aggregator.aggregate(result1);
_aggregator.aggregate(result2);
ParticipantResult aggregratedResult = _aggregator.getAggregatedResult();
assertEquals(EXPECTED_AGGREGATED_ALL_THROUGHPUT, aggregratedResult.getThroughput(), 0.1);
}