Clean up constant name.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1584893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-04-04 20:30:02 +00:00
parent 8e9dd9e158
commit 6b3afdc93d
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ import org.junit.Test;
*/ */
public class CSVParserTest { public class CSVParserTest {
private static final String CSVINPUT = "a,b,c,d\n" private static final String CSV_INPUT = "a,b,c,d\n"
+ " a , b , 1 2 \n" + " a , b , 1 2 \n"
+ "\"foo baar\", b,\n" + "\"foo baar\", b,\n"
// + " \"foo\n,,\n\"\",,\n\\\"\",d,e\n"; // + " \"foo\n,,\n\"\",,\n\\\"\",d,e\n";
@ -487,7 +487,7 @@ public class CSVParserTest {
@Test @Test
public void testGetLine() throws IOException { public void testGetLine() throws IOException {
final CSVParser parser = CSVParser.parse(CSVINPUT, CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(true)); final CSVParser parser = CSVParser.parse(CSV_INPUT, CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(true));
for (final String[] re : RESULT) { for (final String[] re : RESULT) {
assertArrayEquals(re, parser.nextRecord().values()); assertArrayEquals(re, parser.nextRecord().values());
} }
@ -528,7 +528,7 @@ public class CSVParserTest {
@Test @Test
public void testGetRecords() throws IOException { public void testGetRecords() throws IOException {
final CSVParser parser = CSVParser.parse(CSVINPUT, CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(true)); final CSVParser parser = CSVParser.parse(CSV_INPUT, CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(true));
final List<CSVRecord> records = parser.getRecords(); final List<CSVRecord> records = parser.getRecords();
assertEquals(RESULT.length, records.size()); assertEquals(RESULT.length, records.size());
assertTrue(records.size() > 0); assertTrue(records.size() > 0);