@Test public void testFlatMap() { assertThat( StreamUtils.flatMapStream( Stream.<List<String>>of(asList("1", "10"), asList("2"), asList("3"), asList("4")), list -> list.stream()) .collect(Collectors.toList()), hasItem("10")); }
@Test public void testNoneMatch() { assertThat(StreamUtils.noneMatch(of(1, 2, 3, 4, 5), it -> it == 5000), equalTo(true)); }