Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testGet_outOfBounds (0.17 seconds)

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

        assertThat(FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(1)).isEqualTo("b");
        assertThat(FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(2)).isEqualTo("c");
      }
    
      public void testGet_outOfBounds() {
        assertThrows(
            IndexOutOfBoundsException.class,
            () -> FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(-1));
    
        assertThrows(
            IndexOutOfBoundsException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
Back to Top