cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r483350 - /incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
Date Thu, 07 Dec 2006 06:07:10 GMT
Author: tli
Date: Wed Dec  6 22:07:07 2006
New Revision: 483350

URL: http://svn.apache.org/viewvc?view=rev&rev=483350
Log:
fix the windows platform failure of testCopy of StaxUtilsTest caused by /r/n

Modified:
    incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java

Modified: incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java?view=diff&rev=483350&r1=483349&r2=483350
==============================================================================
--- incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
(original)
+++ incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
Wed Dec  6 22:07:07 2006
@@ -77,8 +77,9 @@
         String input = stringWriter.toString();
         // seach for the first begin of "<soap:Envelope" to escape the apache licenses
header
         int beginIndex = input.indexOf("<soap:Envelope");
-        input = input.substring(beginIndex);       
-        
+        input = input.substring(beginIndex);
+        output = output.replaceAll("\r\n", "\n");
+        input = input.replaceAll("\r\n", "\n");
         // compare the input and output string
         assertEquals(input, output);
     }



Mime
View raw message