From 8fb01da22414f79461ce421d0af527d3b9fab47a Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Mon, 16 Apr 2012 13:48:47 +0000 Subject: QPID-3936: Performance Test Framework - Fix failing tests under JDK 1.7 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326616 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/java/org/apache/qpid/disttest/controller/TestRunnerTest.java | 3 ++- .../org/apache/qpid/disttest/results/formatting/CSVFormaterTest.java | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'qpid/java/perftests/src') diff --git a/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/controller/TestRunnerTest.java b/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/controller/TestRunnerTest.java index ffd41049be..983da299b9 100644 --- a/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/controller/TestRunnerTest.java +++ b/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/controller/TestRunnerTest.java @@ -51,6 +51,7 @@ import org.mockito.stubbing.Answer; public class TestRunnerTest extends TestCase { private static final String TEST_NAME = "TEST_NAME"; + private static final String PARTICIPANT_NAME = "TEST_PARTICIPANT_NAME"; private static final int ITERATION_NUMBER = 1; private static final String CLIENT1_REGISTERED_NAME = "client-uid1"; @@ -160,7 +161,7 @@ public class TestRunnerTest extends TestCase _testInstance = createTestInstanceWithOneParticipant(); _testRunner = new TestRunner(_participatingClients, _testInstance , _respondingJmsDelegate, COMMAND_RESPONSE_TIMEOUT, TEST_RESULT_TIMEOUT); - ParticipantResult incomingParticipantResult = new ParticipantResult(); + ParticipantResult incomingParticipantResult = new ParticipantResult(PARTICIPANT_NAME); incomingParticipantResult.setRegisteredClientName(CLIENT1_REGISTERED_NAME); sendTestResultsLater(_testRunner, incomingParticipantResult); diff --git a/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/results/formatting/CSVFormaterTest.java b/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/results/formatting/CSVFormaterTest.java index c8f5b3a231..061ed6a28d 100644 --- a/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/results/formatting/CSVFormaterTest.java +++ b/qpid/java/perftests/src/test/java/org/apache/qpid/disttest/results/formatting/CSVFormaterTest.java @@ -72,6 +72,7 @@ public class CSVFormaterTest extends TestCase Map participantAttributes = getParticipantAttributes(); when(participantResult.getAttributes()).thenReturn(participantAttributes); + when(participantResult.getParticipantName()).thenReturn(PARTICIPANT); TestResult testResult = new TestResult(TEST1); testResult.addParticipantResult(participantResult); @@ -135,6 +136,4 @@ public class CSVFormaterTest extends TestCase return output.toString(); } - - } -- cgit v1.2.1