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 2013/07/30 18:25:30 UTC
svn commit: r1508510 -
/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java
Author: ggregory
Date: Tue Jul 30 16:25:30 2013
New Revision: 1508510
URL: http://svn.apache.org/r1508510
Log:
Better lvar name.
Modified:
commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java
Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java?rev=1508510&r1=1508509&r2=1508510&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java Tue Jul 30 16:25:30 2013
@@ -88,7 +88,7 @@ public class CSVFileParserTest {
final String[] split = line.split(" ");
assertTrue(testName+" require 1 param", split.length >= 1);
// first line starts with csv data file name
- final BufferedReader csvFile = new BufferedReader(new FileReader(new File(BASE, split[0])));
+ final BufferedReader csvFileReader = new BufferedReader(new FileReader(new File(BASE, split[0])));
CSVFormat format = CSVFormat.newFormat(',').withQuoteChar('"');
boolean checkComments = false;
for(int i=1; i < split.length; i++) {
@@ -110,7 +110,7 @@ public class CSVFileParserTest {
assertEquals(testName+" Expected format ", line, format.toString());
// Now parse the file and compare against the expected results
- for(final CSVRecord record : format.parse(csvFile)) {
+ for(final CSVRecord record : format.parse(csvFileReader)) {
String parsed = record.toString();
if (checkComments) {
final String comment = record.getComment().replace("\n", "\\n");