arturobernalg commented on a change in pull request #233:
URL:
https://github.com/apache/commons-collections/pull/233#discussion_r725440479
##########
File path:
src/test/java/org/apache/commons/collections4/iterators/ArrayIteratorTest.java
##########
@@ -56,14 +56,12 @@ public void testIterator() {
assertEquals("Iteration value is correct", testValue, iterValue);
}
- assertTrue("Iterator should now be empty", !iter.hasNext());
+ assertFalse("Iterator should now be empty", iter.hasNext());
try {
iter.next();
} catch (final Exception e) {
- assertTrue(
- "NoSuchElementException must be thrown",
- e.getClass().equals(new NoSuchElementException().getClass()));
+ assertEquals("NoSuchElementException must be thrown",
e.getClass(), new NoSuchElementException().getClass());
Review comment:
HI @kinow , you're right. Changed.
TY
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]