Correction
This commit is contained in:
parent
ca432bbe6b
commit
1002f9b196
@ -87,7 +87,6 @@ public class FirstMatchingElementUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenCalled_thenFindIndexUsingApacheCommons() {
|
public void whenCalled_thenFindIndexUsingApacheCommons() {
|
||||||
List<Object> dataList = Lists.newArrayList("String", Boolean.TRUE, Integer.valueOf(10), Boolean.FALSE, Double.valueOf(20.0));
|
|
||||||
int index = IterableUtils.indexOf(dataList, data -> data instanceof Boolean);
|
int index = IterableUtils.indexOf(dataList, data -> data instanceof Boolean);
|
||||||
assertEquals(1, index);
|
assertEquals(1, index);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user