Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testGetOnlyElement_withDefault_multiple (0.15 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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"));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 45.6K bytes
    - Click Count (0)
Back to Top