Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testStream_nonCollection (0.2 sec)

  1. guava-tests/test/com/google/common/collect/StreamsTest.java

       * overkill when nearly all Streams are produced using well-tested JDK calls. So, we cheat and
       * just test that the toArray() contents are as expected.
       */
      public void testStream_nonCollection() {
        assertThat(stream(FluentIterable.of())).isEmpty();
        assertThat(stream(FluentIterable.of("a"))).containsExactly("a");
        assertThat(stream(FluentIterable.of(1, 2, 3)).filter(n -> n > 1)).containsExactly(2, 3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
Back to top