Make tests compile with various compilers.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-06-14 09:43:29 +00:00
parent 0eaf4db681
commit 157aa8daeb
1 changed files with 4 additions and 4 deletions

View File

@ -700,8 +700,8 @@ public class CollectionUtilsTest extends MockTestCase {
}
}));
assertEquals("a", resultOne.toString());
assertNull(CollectionUtils.forAllButLastDo(strings, null));
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, null));
assertNull(CollectionUtils.forAllButLastDo(strings, (Closure) null));
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, (Closure) null));
}
@Test
@ -714,8 +714,8 @@ public class CollectionUtilsTest extends MockTestCase {
assertSame(lastElement, collectionB);
assertTrue(collectionA.isEmpty() && !collectionB.isEmpty());
assertNull(CollectionUtils.forAllButLastDo(col.iterator(), null));
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, null));
assertNull(CollectionUtils.forAllButLastDo(col.iterator(), (Closure) null));
assertNull(CollectionUtils.forAllButLastDo((Collection<?>) null, (Closure) null));
}
@Test