diff options
Diffstat (limited to 'qpid/java/perftests/src/test')
2 files changed, 3 insertions, 3 deletions
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<ParticipantAttribute, Object> 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(); } - - } |
