Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for testGetLast_withDefault_singleton (0.22 seconds)

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

      }
    
      public void testGetLast_sortedSet() {
        SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a");
        assertThat(Iterables.getLast(sortedSet)).isEqualTo("c");
      }
    
      public void testGetLast_withDefault_singleton() {
        Iterable<String> iterable = singletonList("foo");
        assertThat(Iterables.getLast(iterable, "bar")).isEqualTo("foo");
      }
    
      public void testGetLast_withDefault_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)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testGetLast_exception() {
        List<String> list = new ArrayList<>();
        assertThrows(NoSuchElementException.class, () -> getLast(list.iterator()));
      }
    
      public void testGetLast_withDefault_singleton() {
        Iterator<String> iterator = singletonList("foo").iterator();
        assertThat(Iterators.getLast(iterator, "bar")).isEqualTo("foo");
      }
    
      public void testGetLast_withDefault_empty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testGetLast_exception() {
        List<String> list = new ArrayList<>();
        assertThrows(NoSuchElementException.class, () -> getLast(list.iterator()));
      }
    
      public void testGetLast_withDefault_singleton() {
        Iterator<String> iterator = singletonList("foo").iterator();
        assertThat(Iterators.getLast(iterator, "bar")).isEqualTo("foo");
      }
    
      public void testGetLast_withDefault_empty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
Back to Top