You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/10/06 21:36:30 UTC
[commons-csv] 01/02: No need for all the whitespace.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
commit c18595d1c47596613c17866edd45c6a2b7bdc1bf
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Oct 6 17:24:24 2019 -0400
No need for all the whitespace.
---
src/test/java/org/apache/commons/csv/issues/JiraCvs249Test.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/csv/issues/JiraCvs249Test.java b/src/test/java/org/apache/commons/csv/issues/JiraCvs249Test.java
index 760f6a2..8d906da 100644
--- a/src/test/java/org/apache/commons/csv/issues/JiraCvs249Test.java
+++ b/src/test/java/org/apache/commons/csv/issues/JiraCvs249Test.java
@@ -34,11 +34,8 @@ public class JiraCvs249Test {
@Test
public void testJiraCsv249() throws IOException {
-
final CSVFormat csvFormat = CSVFormat.DEFAULT.withEscape('\\');
-
final StringWriter stringWriter = new StringWriter();
-
try (CSVPrinter printer = new CSVPrinter(stringWriter, csvFormat)) {
printer.printRecord("foo \\", "bar");
}
@@ -47,7 +44,6 @@ public class JiraCvs249Test {
try (CSVParser parser = new CSVParser(stringReader, csvFormat)) {
records = parser.getRecords();
}
-
records.forEach(record -> {
assertEquals("foo \\", record.get(0));
assertEquals("bar", record.get(1));