use of org.apache.qpid.disttest.message.ParticipantResult in project qpid-broker-j by apache.
the class ParticipantResultAggregatorTest method testConstantTestNameAndIterationNumberRolledUp.
@Test
public void testConstantTestNameAndIterationNumberRolledUp() throws Exception {
ParticipantResult result1 = new ParticipantResult();
result1.setTestName(TEST_NAME);
result1.setIterationNumber(TEST_ITERATION_NUMBER);
ParticipantResult result2 = new ParticipantResult();
result2.setTestName(TEST_NAME);
result2.setIterationNumber(TEST_ITERATION_NUMBER);
_aggregator.aggregate(result1);
_aggregator.aggregate(result2);
ParticipantResult aggregatedResult = _aggregator.getAggregatedResult();
assertEquals((long) TEST_ITERATION_NUMBER, (long) aggregatedResult.getIterationNumber());
assertEquals(TEST_NAME, aggregatedResult.getTestName());
}
use of org.apache.qpid.disttest.message.ParticipantResult in project qpid-broker-j by apache.
the class ParticipantResultAggregatorTest method testDifferingAcknowledgeModesNotRolledUp.
@Test
public void testDifferingAcknowledgeModesNotRolledUp() throws Exception {
ParticipantResult result1 = new ParticipantResult();
result1.setBatchSize(Session.AUTO_ACKNOWLEDGE);
ParticipantResult result2 = new ParticipantResult();
result2.setBatchSize(Session.SESSION_TRANSACTED);
_aggregator.aggregate(result1);
_aggregator.aggregate(result2);
ParticipantResult aggregatedResult = _aggregator.getAggregatedResult();
assertEquals((long) -1, (long) aggregatedResult.getAcknowledgeMode());
}
use of org.apache.qpid.disttest.message.ParticipantResult in project qpid-broker-j by apache.
the class ResultsTestFixture method getFirstParticipantResult.
public ParticipantResult getFirstParticipantResult(ResultsForAllTests results) {
List<ITestResult> testResults = results.getTestResults();
ITestResult testResult = testResults.iterator().next();
List<ParticipantResult> participantResults = testResult.getParticipantResults();
return participantResults.iterator().next();
}
Aggregations