You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ve...@apache.org on 2009/01/11 13:37:21 UTC

svn commit: r733464 - /webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/integration/IntegrationTest.java

Author: veithen
Date: Sun Jan 11 04:37:21 2009
New Revision: 733464

URL: http://svn.apache.org/viewvc?rev=733464&view=rev
Log:
Use assertEquals instead of assertTrue.

Modified:
    webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/integration/IntegrationTest.java

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/integration/IntegrationTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/integration/IntegrationTest.java?rev=733464&r1=733463&r2=733464&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/integration/IntegrationTest.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/integration/IntegrationTest.java Sun Jan 11 04:37:21 2009
@@ -192,8 +192,7 @@
         SOAPConnection sCon = SOAPConnectionFactory.newInstance().createConnection();
         SOAPMessage response = sCon.call(request, getAddress());
 
-        int attachmentCount = response.countAttachments();
-        assertTrue(attachmentCount == 2);
+        assertEquals(2, response.countAttachments());
 
         Iterator attachIter = response.getAttachments();
 
@@ -250,8 +249,7 @@
         SOAPConnection sCon = SOAPConnectionFactory.newInstance().createConnection();
         SOAPMessage response = sCon.call(request, getAddress());
 
-        int attachmentCount = response.countAttachments();
-        assertTrue(attachmentCount == 2);
+        assertEquals(2, response.countAttachments());
 
         Iterator attachIter = response.getAttachments();