- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 76 for isNotNull (0.13 seconds)
-
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
byte[] chunk3 = newPreFilledByteArray(20); // More data to file out.write(chunk1); assertThat(out.getFile()).isNull(); out.write(chunk2); assertThat(out.getFile()).isNotNull(); assertThat(source.read()).isEqualTo(concat(chunk1, chunk2)); out.write(chunk3); assertThat(source.read()).isEqualTo(concat(chunk1, chunk2, chunk3)); out.reset(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:04:26 GMT 2026 - 8K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
new AtomicReference<WeakReference<?>>( (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get())); assertThat(sepStopwatchA.get()).isNotNull(); // Clear all references to the Stopwatch and wait for it to be gc'd. sepStopwatchA.set(null); GcFinalization.awaitClear(sepStopwatchRef.get());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 26 02:41:17 GMT 2026 - 7.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
hp = HostAndPort.fromString(hpString); } catch (IllegalArgumentException e) { // Make sure we expected this. assertThat(expectHost).isNull(); return; } assertThat(expectHost).isNotNull(); // Apply withDefaultPort(), yielding hp2. boolean badDefaultPort = defaultPort < 0 || defaultPort > 65535; HostAndPort hp2 = null; try { hp2 = hp.withDefaultPort(defaultPort);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/HostAndPortTest.java
hp = HostAndPort.fromString(hpString); } catch (IllegalArgumentException e) { // Make sure we expected this. assertThat(expectHost).isNull(); return; } assertThat(expectHost).isNotNull(); // Apply withDefaultPort(), yielding hp2. boolean badDefaultPort = defaultPort < 0 || defaultPort > 65535; HostAndPort hp2 = null; try { hp2 = hp.withDefaultPort(defaultPort);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt
* limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.hasMessage import assertk.assertions.isEqualTo import assertk.assertions.isNotNull import assertk.assertions.isNull import java.io.EOFException import java.net.ProtocolException import kotlin.test.assertFailsWith import okhttp3.Headers.Companion.headersOf import okhttp3.MediaType.Companion.toMediaType
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 02:11:14 GMT 2025 - 15.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
Object getResult() { if (throwable != null) { throw new AssertionError(throwable); } return result; } Throwable getThrowable() { assertThat(throwable).isNotNull(); return throwable; } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
Object getResult() { if (throwable != null) { throw new AssertionError(throwable); } return result; } Throwable getThrowable() { assertThat(throwable).isNotNull(); return throwable; } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
} public void testLexicographicalComparatorChoice() { Comparator<byte[]> defaultComparator = UnsignedBytes.lexicographicalComparator(); assertThat(defaultComparator).isNotNull(); assertThat(UnsignedBytes.lexicographicalComparator()).isSameInstanceAs(defaultComparator); if (unsafeComparatorAvailable()) { assertThat(defaultComparator).isInstanceOf(UnsafeComparator.class); } else {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 13.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
} public void testLexicographicalComparatorChoice() { Comparator<byte[]> defaultComparator = UnsignedBytes.lexicographicalComparator(); assertThat(defaultComparator).isNotNull(); assertThat(UnsignedBytes.lexicographicalComparator()).isSameInstanceAs(defaultComparator); if (!isJava8()) { assertThat(defaultComparator).isInstanceOf(ArraysCompareUnsignedComparator.class);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 14K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
Object key = new Object(); assertThat(cache.getUnchecked(key)).isNotNull(); CacheTesting.simulateValueReclamation(cache, key); // this blocks if computation can't deal with partially-collected values assertThat(cache.getUnchecked(key)).isNotNull(); assertThat(cache.size()).isEqualTo(1); assertThat(countingLoader.getCount()).isEqualTo(2);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 91K bytes - Click Count (0)