axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r230393 - /webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/swa/EchoRawSwATest.java
Date Fri, 05 Aug 2005 04:09:48 GMT
Author: thilina
Date: Thu Aug  4 21:09:39 2005
New Revision: 230393

URL: http://svn.apache.org/viewcvs?rev=230393&view=rev
Log:
A Small Fix :-;

Modified:
    webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/swa/EchoRawSwATest.java

Modified: webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/swa/EchoRawSwATest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/swa/EchoRawSwATest.java?rev=230393&r1=230392&r2=230393&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/swa/EchoRawSwATest.java
(original)
+++ webservices/axis/trunk/java/modules/integration/test/org/apache/axis2/swa/EchoRawSwATest.java
Thu Aug  4 21:09:39 2005
@@ -99,8 +99,8 @@
         OutputStream outStream = socket.getOutputStream();
         InputStream inStream = socket.getInputStream();
         InputStream requestMsgInStream = getResourceAsStream("org/apache/axis2/swa/swainput.txt");
-        while (requestMsgInStream.available() > 0) {
-            int data = requestMsgInStream.read();
+        int data;
+	while ((data = requestMsgInStream.read())!=-1) {
             outStream.write(data);
         }
         outStream.flush();
@@ -125,4 +125,4 @@
         String returnedTextValue = actualTextData.getText();
         TestCase.assertEquals(returnedTextValue, originalTextValue);
     }
-}
\ No newline at end of file
+}



Mime
View raw message