Author: max.andersen(a)jboss.com
Date: 2007-06-11 08:05:03 -0400 (Mon, 11 Jun 2007)
New Revision: 11677
Modified:
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/XMLPrettyPrinterTest.java
Log:
fixe linebreak issues
Modified:
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/XMLPrettyPrinterTest.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/XMLPrettyPrinterTest.java 2007-06-08
22:13:39 UTC (rev 11676)
+++
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/XMLPrettyPrinterTest.java 2007-06-11
12:05:03 UTC (rev 11677)
@@ -33,8 +33,12 @@
String string = byteArrayOutputStream.toString();
- assertEquals("<basic
attrib='1'></basic>\r\n",string);
+ assertEquals("<basic attrib='1'></basic>" +
lineSeparator(),string);
}
+
+ private String lineSeparator() {
+ return System.getProperty("line.separator");
+ }
/* public void testCloseTag() throws IOException, DocumentException, SAXException {
@@ -56,7 +60,7 @@
String string = byteArrayOutputStream.toString();
assertEquals(
- "<hibernate-mapping defaultx-lazy=\"false\"
/>\r\n\r\n"
+ "<hibernate-mapping defaultx-lazy=\"false\" />"
+ lineSeparator() + lineSeparator()
,string);
}
}
Show replies by date