Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testTransform_present_functionReturnsNull (0.23 seconds)

  1. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testTransform_presentToString() {
        assertEquals(Optional.of("42"), Optional.of(42).transform(Functions.toStringFunction()));
      }
    
      public void testTransform_present_functionReturnsNull() {
        assertThrows(NullPointerException.class, () -> Optional.of("a").transform(input -> null));
      }
    
      public void testTransform_absent_functionReturnsNull() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 10.5K bytes
    - Click Count (0)
Back to Top