From b9821007b9be80e3e8d55e1bb047b798541007ad Mon Sep 17 00:00:00 2001 From: Robert Greig Date: Tue, 8 May 2007 11:39:51 +0000 Subject: Added inclusion of sender and receiver names in results. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536164 13f79535-47bb-0310-9956-ffa450edef68 --- .../interop/coordinator/CoordinatingTestCase.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'java/integrationtests') diff --git a/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java b/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java index fd0cccf147..ef69d14be8 100644 --- a/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java +++ b/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java @@ -136,6 +136,25 @@ public abstract class CoordinatingTestCase extends TestCase return receiver; } + /** + * Returns the name of the current test method of this test class, with the sending and receiving client names + * appended on to it, so that the resulting name unqiuely identifies the test and the clients that participated + * in it. + * + * @return The unique test and client name. + */ + public String getName() + { + if ((sender == null) || (receiver == null)) + { + return super.getName(); + } + else + { + return super.getName() + "_sender_" + sender.clientName + "_receiver_" + receiver.clientName; + } + } + /** * Should provide a translation from the junit method name of a test to its test case name as defined in the * interop testing specification. For example the method "testP2P" might map onto the interop test case name -- cgit v1.2.1