Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 191 for IsNull (0.32 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        val page2 = server.takeRequest()
        assertThat(page2.requestLine).isEqualTo("GET /page2 HTTP/1.1")
        assertThat(page2.headers["Content-Length"]).isNull()
        assertThat(page2.headers["Content-Type"]).isNull()
        assertThat(page2.headers["Transfer-Encoding"]).isNull()
      }
    
      @Test
      fun response305UseProxy() {
        server.enqueue(
          MockResponse(
            code = HttpURLConnection.HTTP_USE_PROXY,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

        File file = root();
        assertThat(file.getParentFile()).isNull();
        assertThat(file.getCanonicalFile().getParentFile()).isNull();
        Files.createParentDirs(file);
      }
    
      public void testCreateParentDirs_relativePath() throws IOException {
        File file = file("nonexistent.file");
        assertThat(file.getParentFile()).isNull();
        assertThat(file.getCanonicalFile().getParentFile()).isNotNull();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            // don't let the new entry get GCed
            warmed.add(entryOf(entry.getKey(), newValue));
            Object newKey = new Object();
            assertThat(cache.asMap().put(newKey, entry.getValue())).isNull();
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(newValue);
            assertThat(cache.getUnchecked(newKey)).isEqualTo(entry.getValue());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/TestThread.java

        sendRequest(methodName, arguments);
        Thread.sleep(DUE_DILIGENCE_MILLIS);
        assertEquals(true, invokeMethod("hasQueuedThread", this));
        assertThat(responseQueue.poll()).isNull();
      }
    
      /**
       * Causes this thread to call the named method, and asserts that this thread thereby waits on the
       * given condition-like object. The lock-like object must have a method equivalent to {@link
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        assertTrue(future.isCancelled());
      }
    
      public void testAwaitClear() {
        WeakReference<Object> ref = new WeakReference<>(new Object());
        GcFinalization.awaitClear(ref);
        assertThat(ref.get()).isNull();
      }
    
      public void testAwaitDone_finalizationPredicate() {
        WeakHashMap<Object, Object> map = new WeakHashMap<>();
        map.put(new Object(), Boolean.TRUE);
        GcFinalization.awaitDone(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 17:02:07 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        assertFalse(queue.remove("hi"));
        assertEquals(0, queue.size());
    
        assertThrows(NoSuchElementException.class, () -> queue.element());
    
        assertThat(queue.peek()).isNull();
        assertThat(queue.poll()).isNull();
        assertThrows(NoSuchElementException.class, () -> queue.remove());
      }
    
      public void testRemainingCapacity_maxSize0() {
        EvictingQueue<String> queue = EvictingQueue.create(0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        assertTrue(future.isCancelled());
      }
    
      public void testAwaitClear() {
        WeakReference<Object> ref = new WeakReference<>(new Object());
        GcFinalization.awaitClear(ref);
        assertThat(ref.get()).isNull();
      }
    
      public void testAwaitDone_finalizationPredicate() {
        WeakHashMap<Object, Object> map = new WeakHashMap<>();
        map.put(new Object(), Boolean.TRUE);
        GcFinalization.awaitDone(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 17:02:07 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Predicates.java

       * null.
       *
       * <p><b>Discouraged:</b> Prefer using either {@code x -> x == null} or {@code Objects::isNull},
       * but note that lambdas and method references do not have human-readable {@link #toString()}
       * representations and are not serializable.
       */
      public static <T extends @Nullable Object> Predicate<T> isNull() {
        return ObjectPredicate.IS_NULL.withNarrowedType();
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        if (chunk1 > 0) {
          write(out, data, 0, chunk1, singleByte);
          assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source));
        }
        File file = out.getFile();
        assertThat(file).isNull();
    
        // Write data to go over the threshold
        if (chunk2 > 0) {
          write(out, data, chunk1, chunk2, singleByte);
          file = out.getFile();
          assertEquals(dataSize, file.length());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 16:30:29 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import assertk.assertions.isTrue
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.CallEvent.CallEnd
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top