Exemplo n.º 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));
 }
Exemplo n.º 2
0
 @Test
 public void testToStream() throws Exception {
   assertThat(
       ToStream.toStream(LazyStream.of(1, 2, 3, 4)).collect(Collectors.toList()).size(), is(4));
 }