Author: sebb Date: Fri Mar 30 01:00:32 2012 New Revision: 1307188 URL: http://svn.apache.org/viewvc?rev=1307188&view=rev Log: Use public CRLF constant
Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatTest.java Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatTest.java URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatTest.java?rev=1307188&r1=1307187&r2=1307188&view=diff ============================================================================== --- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatTest.java (original) +++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatTest.java Fri Mar 30 01:00:32 2012 @@ -30,7 +30,7 @@ public class CSVFormatTest { @Test public void testImmutalibity() { - CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, "\r\n", null); + CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, CSVFormat.CRLF, null); format.withDelimiter('?'); format.withEncapsulator('?'); @@ -44,7 +44,7 @@ public class CSVFormatTest { assertEquals('!', format.getEncapsulator()); assertEquals('!', format.getCommentStart()); assertEquals('!', format.getEscape()); - assertEquals("\r\n", format.getLineSeparator()); + assertEquals(CSVFormat.CRLF, format.getLineSeparator()); assertTrue(format.isSurroundingSpacesIgnored()); assertTrue(format.isEmptyLinesIgnored()); @@ -52,7 +52,7 @@ public class CSVFormatTest { @Test public void testMutators() { - CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, "\r\n", null); + CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, CSVFormat.CRLF, null); assertEquals('?', format.withDelimiter('?').getDelimiter()); assertEquals('?', format.withEncapsulator('?').getEncapsulator());