commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject commons-collections git commit: IterableUtilsTest#indexOf, IteratorUtilsTest#indexOf: simplify
Date Mon, 02 Oct 2017 09:51:44 GMT
Repository: commons-collections
Updated Branches:
  refs/heads/master 6f3563387 -> c8bdf60d1


IterableUtilsTest#indexOf, IteratorUtilsTest#indexOf: simplify


Project: http://git-wip-us.apache.org/repos/asf/commons-collections/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-collections/commit/c8bdf60d
Tree: http://git-wip-us.apache.org/repos/asf/commons-collections/tree/c8bdf60d
Diff: http://git-wip-us.apache.org/repos/asf/commons-collections/diff/c8bdf60d

Branch: refs/heads/master
Commit: c8bdf60d1d0be609094e14054be0b9af0fb05521
Parents: 6f35633
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Mon Oct 2 11:51:27 2017 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Mon Oct 2 11:51:27 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/commons/collections4/IterableUtilsTest.java    | 2 +-
 .../java/org/apache/commons/collections4/IteratorUtilsTest.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-collections/blob/c8bdf60d/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java b/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java
index 86db1b5..7fd4873 100644
--- a/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java
@@ -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

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/c8bdf60d/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java b/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
index a27ad04..70252a6 100644
--- a/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
@@ -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


Mime
View raw message