Use public CRLF constant

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307188 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-03-30 01:00:32 +00:00
parent 0186a3d335
commit 5c3e51363f
1 changed files with 3 additions and 3 deletions

View File

@ -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());