From 5c3e51363fe10ca03f832858fb69ccf80f490ebb Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 30 Mar 2012 01:00:32 +0000 Subject: [PATCH] Use public CRLF constant git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307188 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/java/org/apache/commons/csv/CSVFormatTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java b/src/test/java/org/apache/commons/csv/CSVFormatTest.java index e34ff5e5..3f88e6a4 100644 --- a/src/test/java/org/apache/commons/csv/CSVFormatTest.java +++ b/src/test/java/org/apache/commons/csv/CSVFormatTest.java @@ -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());