nhojpatrick commented on a change in pull request #282: URL: https://github.com/apache/commons-collections/pull/282#discussion_r818414461
########## File path: src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapper2Test.java ########## @@ -109,11 +110,7 @@ public void testRemove() { assertEquals(-1, iter.previousIndex()); assertEquals(0, iter.nextIndex()); - try { - iter.remove(); - fail("ListIteratorWrapper#remove() should fail; must be initially positioned first"); - } catch (final IllegalStateException e) { - } + assertThrows(IllegalStateException.class, () -> iter.remove()); Review comment: ditto too -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org