You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2007/05/08 13:39:52 UTC

svn commit: r536164 - /incubator/qpid/branches/M2/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java

Author: rgreig
Date: Tue May  8 04:39:51 2007
New Revision: 536164

URL: http://svn.apache.org/viewvc?view=rev&rev=536164
Log:
Added inclusion of sender and receiver names in results.

Modified:
    incubator/qpid/branches/M2/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java

Modified: incubator/qpid/branches/M2/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java?view=diff&rev=536164&r1=536163&r2=536164
==============================================================================
--- incubator/qpid/branches/M2/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java (original)
+++ incubator/qpid/branches/M2/java/integrationtests/src/main/java/org/apache/qpid/interop/coordinator/CoordinatingTestCase.java Tue May  8 04:39:51 2007
@@ -137,6 +137,25 @@
     }
 
     /**
+     * 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".