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
This commit is contained in:
parent
b30da4450f
commit
31896b6d43
|
@ -423,7 +423,11 @@ public class CSVParserTest extends TestCase {
|
|||
Iterator<String[]> iterator = CSVFormat.DEFAULT.parse(in).iterator();
|
||||
|
||||
assertTrue(iterator.hasNext());
|
||||
iterator.remove();
|
||||
try {
|
||||
iterator.remove();
|
||||
fail("expected UnsupportedOperationException");
|
||||
} catch (UnsupportedOperationException expected) {
|
||||
}
|
||||
assertTrue(Arrays.equals(new String[]{"a", "b", "c"}, iterator.next()));
|
||||
assertTrue(Arrays.equals(new String[]{"1", "2", "3"}, iterator.next()));
|
||||
assertTrue(iterator.hasNext());
|
||||
|
|
Loading…
Reference in New Issue