Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGet_outOfBounds (0.32 sec)

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

        assertEquals("b", FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(1));
        assertEquals("c", FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(2));
      }
    
      public void testGet_outOfBounds() {
        try {
          FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(-1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
    
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertEquals("b", FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(1));
        assertEquals("c", FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(2));
      }
    
      public void testGet_outOfBounds() {
        try {
          FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(-1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
Back to top