You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2008/12/23 17:01:54 UTC

svn commit: r729015 - /webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java

Author: veithen
Date: Tue Dec 23 08:01:54 2008
New Revision: 729015

URL: http://svn.apache.org/viewvc?rev=729015&view=rev
Log:
SYNAPSE-491: Made the message of the test assertion more explicit so that we get more information about this issue.

Modified:
    webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java

Modified: webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java?rev=729015&r1=729014&r2=729015&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java (original)
+++ webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java Tue Dec 23 08:01:54 2008
@@ -112,7 +112,9 @@
         if (sender instanceof ManagementSupport) {
             ManagementSupport sender = (ManagementSupport)this.sender;
             Assert.assertEquals(messagesSent+1, sender.getMessagesSent());
-            Assert.assertTrue("No increase in bytes sent", sender.getBytesSent() > bytesSent);
+            long newBytesSent = sender.getBytesSent();
+            Assert.assertTrue("No increase in bytes sent (before sending: " + bytesSent +
+                    "; after sending: " + newBytesSent + ")", newBytesSent > bytesSent);
         }
     }
 }