[COLLECTIONS-678] The verification of unsupported iterator methods is

not complete. Closes #36.
This commit is contained in:
Gary Gregory 2018-03-08 13:13:31 -07:00
parent 8da9a65b63
commit 8354ffffce
2 changed files with 924 additions and 919 deletions

File diff suppressed because it is too large Load Diff

View File

@ -166,6 +166,7 @@ public abstract class AbstractListIteratorTest<E> extends AbstractIteratorTest<E
// check for UnsupportedOperationException if not supported
try {
it.add(addValue);
fail("UnsupportedOperationException must be thrown from add of " + it.getClass().getSimpleName());
} catch (final UnsupportedOperationException ex) {}
return;
}
@ -201,6 +202,7 @@ public abstract class AbstractListIteratorTest<E> extends AbstractIteratorTest<E
// check for UnsupportedOperationException if not supported
try {
it.set(addSetValue());
fail("UnsupportedOperationException must be thrown from set in " + it.getClass().getSimpleName());
} catch (final UnsupportedOperationException ex) {}
return;
}