Exemplo n.º 1
0
 @Test
 public void bridgeArrayYieldingFunctionToIterableYieldingFunction() {
   Fn<Object, Integer[]> oneTwoThree =
       new Fn<Object, Integer[]>() {
         @Override
         public Integer[] $(Object value) {
           return new Integer[] {1, 2, 3};
         }
       };
   assertThat(optional("").split(Iterate.toIterable(oneTwoThree)), contains(1, 2, 3));
 }