We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8033a71 commit ecf59beCopy full SHA for ecf59be
1 file changed
src/test/java/org/apache/commons/csv/CSVParserTest.java
@@ -353,10 +353,12 @@ public void testDefaultFormat() throws IOException {
353
public void testUnicodeEscape() throws Exception {
354
String code = "abc,\\u0070\\u0075\\u0062\\u006C\\u0069\\u0063";
355
CSVParser parser = new CSVParser(code, CSVFormat.DEFAULT.withUnicodeEscapesInterpreted(true));
356
- String[] data = parser.iterator().next();
+ final Iterator<String[]> iterator = parser.iterator();
357
+ String[] data = iterator.next();
358
assertEquals(2, data.length);
359
assertEquals("abc", data[0]);
360
assertEquals("public", data[1]);
361
+ assertFalse("Should not have any more records", iterator.hasNext());
362
}
363
364
public void testCarriageReturnLineFeedEndings() throws IOException {
0 commit comments