Beispiel #1
0
 @Test
 public void testToStream() throws Exception {
   assertThat(
       ToStream.toStream(FluentIterable.of(new Integer[] {1, 2, 3, 4}))
           .collect(Collectors.toList())
           .size(),
       is(4));
 }
Beispiel #2
0
 @Test
 public void testToStream() throws Exception {
   assertThat(
       ToStream.toStream(LazyStream.of(1, 2, 3, 4)).collect(Collectors.toList()).size(), is(4));
 }