Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testIdentity_same (0.09 seconds)

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

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

    /**
     * Tests for {@link Functions}.
     *
     * @author Mike Bostock
     * @author Vlad Patryshev
     */
    @GwtCompatible
    @NullMarked
    public class FunctionsTest extends TestCase {
    
      public void testIdentity_same() {
        Function<@Nullable String, @Nullable String> identity = Functions.identity();
        assertThat(identity.apply(null)).isNull();
        assertThat(identity.apply("foo")).isSameInstanceAs("foo");
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
Back to Top