Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testGetOnlyElement_noDefault_valid (0.31 seconds)

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

      }
    
      public void test_contains_nonnull_iterable_no() {
        Iterable<String> set = iterable("a", "b");
        assertFalse(Iterables.contains(set, "c"));
      }
    
      public void testGetOnlyElement_noDefault_valid() {
        Iterable<String> iterable = singletonList("foo");
        assertThat(getOnlyElement(iterable)).isEqualTo("foo");
      }
    
      public void testGetOnlyElement_noDefault_empty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
Back to Top