Author: jim.ma
Date: 2012-01-31 23:41:41 -0500 (Tue, 31 Jan 2012)
New Revision: 15553
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3277/JBWS3277TestCase.java
Log:
[JBPAPP-7279]:JBWS3277TestCase.testMtomSawpFile fails on Windows, message is larger than
expected
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3277/JBWS3277TestCase.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3277/JBWS3277TestCase.java 2012-02-01
04:20:47 UTC (rev 15552)
+++
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3277/JBWS3277TestCase.java 2012-02-01
04:41:41 UTC (rev 15553)
@@ -79,7 +79,8 @@
ByteArrayOutputStream os = new ByteArrayOutputStream();
Result result = new StreamResult(os);
t.transform(source, result);
- assertEquals(375, os.toByteArray().length);
+ String cleaned = new String(os.toByteArray()).replaceAll("[\\r\\n]",
"");
+ assertEquals(363, cleaned.length());
}
}