- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testFirstNonNull_withNonNull (0.16 sec)
-
android/guava-tests/test/com/google/common/base/MoreObjectsTest.java
import com.google.common.testing.NullPointerTester; import junit.framework.TestCase; /** Tests for {@link MoreObjects}. */ @GwtCompatible(emulated = true) public class MoreObjectsTest extends TestCase { public void testFirstNonNull_withNonNull() { String s1 = "foo"; String s2 = MoreObjects.firstNonNull(s1, "bar"); assertSame(s1, s2); Long n1 = 42L; Long n2 = MoreObjects.firstNonNull(null, n1); assertSame(n1, n2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/MoreObjectsTest.java
import com.google.common.testing.NullPointerTester; import junit.framework.TestCase; /** Tests for {@link MoreObjects}. */ @GwtCompatible(emulated = true) public class MoreObjectsTest extends TestCase { public void testFirstNonNull_withNonNull() { String s1 = "foo"; String s2 = MoreObjects.firstNonNull(s1, "bar"); assertSame(s1, s2); Long n1 = 42L; Long n2 = MoreObjects.firstNonNull(null, n1); assertSame(n1, n2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 2.1K bytes - Viewed (0)