summaryrefslogtreecommitdiff
path: root/java/integrationtests/src/main
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2007-05-08 11:39:51 +0000
committerRobert Greig <rgreig@apache.org>2007-05-08 11:39:51 +0000
commitb9821007b9be80e3e8d55e1bb047b798541007ad (patch)
treea6b0cc1c03b044b6c9741289b3b82ef8bd14a4e1 /java/integrationtests/src/main
parent5749696efa8958eb3a6d0ad0c166c48d2893c429 (diff)
downloadqpid-python-b9821007b9be80e3e8d55e1bb047b798541007ad.tar.gz
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
Diffstat (limited to 'java/integrationtests/src/main')
-rw-r--r--java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java19
1 files changed, 19 insertions, 0 deletions
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
@@ -137,6 +137,25 @@ public abstract class CoordinatingTestCase extends TestCase
}
/**
+ * 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
* "TC2_BasicP2P".