[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

View File

@ -93,6 +93,9 @@
<action issue="COLLECTIONS-676" dev="ggregory" type="add" due-to="Matthew Knight"> <action issue="COLLECTIONS-676" dev="ggregory" type="add" due-to="Matthew Knight">
Modify IteratorUtils.pushbackIterator signature to return PushbackIterator. Modify IteratorUtils.pushbackIterator signature to return PushbackIterator.
</action> </action>
<action issue="COLLECTIONS-678" dev="ggregory" type="fix" due-to="Oscar Luis Vera Pérez">
The verification of unsupported iterator methods is not complete.
</action>
</release> </release>
<release version="4.1" date="2015-11-28" description="This is a security and minor release."> <release version="4.1" date="2015-11-28" description="This is a security and minor release.">
<action issue="COLLECTIONS-508" dev="tn" type="add"> <action issue="COLLECTIONS-508" dev="tn" type="add">

View File

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