- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testIdentity_notSame (0.09 seconds)
-
guava-tests/test/com/google/common/base/FunctionsTest.java
Function<@Nullable String, @Nullable String> identity = Functions.identity(); assertThat(identity.apply(null)).isNull(); assertThat(identity.apply("foo")).isSameInstanceAs("foo"); } public void testIdentity_notSame() { Function<Long, Long> identity = Functions.identity(); assertThat(identity.apply(new Long(135135L))).isNotSameInstanceAs(new Long(135135L)); } @J2ktIncompatible
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) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
Function<@Nullable String, @Nullable String> identity = Functions.identity(); assertThat(identity.apply(null)).isNull(); assertThat(identity.apply("foo")).isSameInstanceAs("foo"); } public void testIdentity_notSame() { Function<Long, Long> identity = Functions.identity(); assertThat(identity.apply(new Long(135135L))).isNotSameInstanceAs(new Long(135135L)); } @J2ktIncompatible
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)