[COLLECTIONS-678] The verification of unsupported iterator methods is
not complete. Closes #36.
This commit is contained in:
parent
8da9a65b63
commit
8354ffffce
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue