Skip to content

Commit 31896b6

Browse files
committed
FIx test due to change in remove() behaviour
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300675 13f79535-47bb-0310-9956-ffa450edef68
1 parent b30da44 commit 31896b6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,11 @@ public void testIterator() {
423423
Iterator<String[]> iterator = CSVFormat.DEFAULT.parse(in).iterator();
424424

425425
assertTrue(iterator.hasNext());
426-
iterator.remove();
426+
try {
427+
iterator.remove();
428+
fail("expected UnsupportedOperationException");
429+
} catch (UnsupportedOperationException expected) {
430+
}
427431
assertTrue(Arrays.equals(new String[]{"a", "b", "c"}, iterator.next()));
428432
assertTrue(Arrays.equals(new String[]{"1", "2", "3"}, iterator.next()));
429433
assertTrue(iterator.hasNext());

0 commit comments

Comments
 (0)