Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testGetOnlyElement_withDefault_multiple (0.11 sec)

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

        Iterable<String> iterable = emptyList();
        assertThat(Iterables.<@Nullable String>getOnlyElement(iterable, null)).isNull();
      }
    
      public void testGetOnlyElement_withDefault_multiple() {
        Iterable<String> iterable = asList("foo", "bar");
        assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterable, "x"));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 45.6K bytes
    - Viewed (0)
Back to top