From 51f226d0f882b2af656b97e7c38e581f615c77b9 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Mon, 7 Apr 2014 14:31:03 +0000 Subject: [PATCH] Add org.apache.commons.csv.CSVParserTest.testGetOneLineOneParser(). See discussion in [CSV-110]. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1585492 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/java/org/apache/commons/csv/CSVParserTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java b/src/test/java/org/apache/commons/csv/CSVParserTest.java index 56b99168..c5c9ef7c 100644 --- a/src/test/java/org/apache/commons/csv/CSVParserTest.java +++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java @@ -546,10 +546,12 @@ public class CSVParserTest { final CSVFormat format = CSVFormat.DEFAULT; final CSVParser parser = new CSVParser(reader, format); try { - writer.append(CSV_INPUT_1 + format.getRecordSeparator()); + writer.append(CSV_INPUT_1); + writer.append(format.getRecordSeparator()); final CSVRecord record1 = parser.nextRecord(); assertArrayEquals(RESULT[0], record1.values()); - writer.append(CSV_INPUT_2 + format.getRecordSeparator()); + writer.append(CSV_INPUT_2); + writer.append(format.getRecordSeparator()); final CSVRecord record2 = parser.nextRecord(); assertArrayEquals(RESULT[1], record2.values()); } finally {