You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by tl...@apache.org on 2006/12/07 07:07:10 UTC
svn commit: r483350 -
/incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
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);
}