Skip to content

Commit 5c3e513

Browse files
committed
Use public CRLF constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307188 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0186a3d commit 5c3e513

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/org/apache/commons/csv/CSVFormatTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class CSVFormatTest {
3030

3131
@Test
3232
public void testImmutalibity() {
33-
CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, "\r\n", null);
33+
CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, CSVFormat.CRLF, null);
3434

3535
format.withDelimiter('?');
3636
format.withEncapsulator('?');
@@ -44,15 +44,15 @@ public void testImmutalibity() {
4444
assertEquals('!', format.getEncapsulator());
4545
assertEquals('!', format.getCommentStart());
4646
assertEquals('!', format.getEscape());
47-
assertEquals("\r\n", format.getLineSeparator());
47+
assertEquals(CSVFormat.CRLF, format.getLineSeparator());
4848

4949
assertTrue(format.isSurroundingSpacesIgnored());
5050
assertTrue(format.isEmptyLinesIgnored());
5151
}
5252

5353
@Test
5454
public void testMutators() {
55-
CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, "\r\n", null);
55+
CSVFormat format = new CSVFormat('!', '!', '!', '!', true, true, CSVFormat.CRLF, null);
5656

5757
assertEquals('?', format.withDelimiter('?').getDelimiter());
5858
assertEquals('?', format.withEncapsulator('?').getEncapsulator());

0 commit comments

Comments
 (0)