- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 234 for isNull (0.09 seconds)
-
android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java
} } try { Range<C> span = rangeSet.span(); assertEquals(expectedSpan, span); } catch (NoSuchElementException e) { assertThat(expectedSpan).isNull(); } // test that asDescendingSetOfRanges is the reverse of asRanges assertEquals(Lists.reverse(asRanges), ImmutableList.copyOf(rangeSet.asDescendingSetOfRanges())); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 2.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.isNull; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verifyNoMoreInteractions; import static org.mockito.Mockito.when; import java.lang.reflect.Method;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.9K bytes - Click Count (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
import assertk.assertions.isEqualTo import assertk.assertions.isGreaterThan import assertk.assertions.isGreaterThanOrEqualTo import assertk.assertions.isNotEqualTo import assertk.assertions.isNotNull import assertk.assertions.isNull import assertk.assertions.isTrue import java.io.BufferedReader import java.io.Closeable import java.io.IOException import java.io.InputStreamReader import java.net.ConnectException import java.net.HttpURLConnection
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 03 13:16:34 GMT 2025 - 22.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/StringsTest.java
assertThat(Strings.nullToEmpty("")).isEqualTo(""); assertThat(Strings.nullToEmpty("a")).isEqualTo("a"); } public void testEmptyToNull() { assertThat(Strings.emptyToNull(null)).isNull(); assertThat(Strings.emptyToNull("")).isNull(); assertThat(Strings.emptyToNull("a")).isEqualTo("a"); } public void testIsNullOrEmpty() { assertTrue(Strings.isNullOrEmpty(null)); assertTrue(Strings.isNullOrEmpty(""));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 11.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
@GwtCompatible @NullUnmarked public class CallablesTest extends TestCase { @J2ktIncompatible // TODO(b/324550390): Enable public void testReturning() throws Exception { assertThat(Callables.returning(null).call()).isNull(); Object value = new Object(); Callable<Object> callable = Callables.returning(value); assertThat(callable.call()).isEqualTo(value); // Expect the same value on subsequent callsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
@GwtCompatible @NullUnmarked public class CallablesTest extends TestCase { @J2ktIncompatible // TODO(b/324550390): Enable public void testReturning() throws Exception { assertThat(Callables.returning(null).call()).isNull(); Object value = new Object(); Callable<Object> callable = Callables.returning(value); assertThat(callable.call()).isEqualTo(value); // Expect the same value on subsequent callsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
ImmutableSortedSet.copyOf(new String[] {"e", "e", "f", "b", "i", "d", "c", "k"}); assertThat(set.floor("a")).isNull(); } public void testCeiling_emptySet() { ImmutableSortedSet<String> set = ImmutableSortedSet.copyOf(new String[] {}); assertThat(set.ceiling("f")).isNull(); } public void testCeiling_elementPresent() { ImmutableSortedSet<String> set =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 46.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
String string = source.read(); assertExpectedString(string); } public void testReadFirstLine() throws IOException { if (expectedLines.isEmpty()) { assertThat(source.readFirstLine()).isNull(); } else { assertThat(source.readFirstLine()).isEqualTo(expectedLines.get(0)); } } public void testReadLines_toList() throws IOException { assertExpectedLines(source.readLines());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 7.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertThat(TypeToken.of(Object.class).getComponentType()).isNull(); assertThat(TypeToken.of(void.class).getComponentType()).isNull(); } public <T> void testGetComponentType_genericArrayClasses() { assertThat(TypeToken.of(new TypeCapture<T>() {}.capture()).getComponentType()).isNull(); assertEquals( TypeToken.of(new TypeCapture<T>() {}.capture()),
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
actualOccupiedDepth.set(monitor.getOccupiedDepth()); } catch (Throwable t) { thrown.set(t); } })); assertThat(thrown.get()).isNull(); assertEquals(expectedIsOccupied, actualIsOccupied.get()); assertEquals(expectedIsOccupiedByCurrentThread, actualIsOccupiedByCurrentThread.get()); assertEquals(expectedOccupiedDepth, actualOccupiedDepth.get());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 5K bytes - Click Count (0)