IterableUtilsTest#indexOf, IteratorUtilsTest#indexOf: simplify
This commit is contained in:
parent
6f35633878
commit
c8bdf60d1d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue