IterableUtilsTest#indexOf, IteratorUtilsTest#indexOf: simplify

This commit is contained in:
pascalschumacher 2017-10-02 11:51:27 +02:00
parent 6f35633878
commit c8bdf60d1d
2 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ public class IterableUtilsTest {
assertEquals(-1, index);
assertEquals(-1, IterableUtils.indexOf(null, testPredicate));
try {
assertNull(IterableUtils.indexOf(iterableA, null));
IterableUtils.indexOf(iterableA, null);
fail("expecting NullPointerException");
} catch (final NullPointerException npe) {
// expected

View File

@ -1064,7 +1064,7 @@ public class IteratorUtilsTest {
assertEquals(-1, index);
assertEquals(-1, IteratorUtils.indexOf(null, testPredicate));
try {
assertNull(IteratorUtils.indexOf(iterableA.iterator(), null));
IteratorUtils.indexOf(iterableA.iterator(), null);
fail("expecting NullPointerException");
} catch (final NullPointerException npe) {
// expected