Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for assertThat (0.04 sec)

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

        assertThat(response2.body.string()).isEqualTo("ABC")
        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.networkCount()).isEqualTo(1)
        assertThat(cache.hitCount()).isEqualTo(1)
        assertThat(response2.handshake!!.cipherSuite).isEqualTo(cipherSuite)
        assertThat(response2.handshake!!.localCertificates).isEqualTo(localCerts)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        assertThat(response.code).isEqualTo(200)
        response.body.close()
        val recordedRequest1 = server.takeRequest()
        assertThat(recordedRequest1.method).isEqualTo("POST")
        assertThat(recordedRequest1.body?.utf8()).isEqualTo(body)
        assertThat(recordedRequest1.headers["Authorization"]).isNull()
        val recordedRequest2 = server.takeRequest()
        assertThat(recordedRequest2.method).isEqualTo("POST")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        assertThat(response.code).isEqualTo(200)
        assertThat(response.message).isEqualTo("Fantastic")
        val responseHeaders = response.headers
        assertThat(LinkedHashSet(responseHeaders.values("A"))).isEqualTo(newSet("c", "e"))
        assertThat(LinkedHashSet(responseHeaders.values("a"))).isEqualTo(newSet("c", "e"))
        assertThat(responseHeaders.name(0)).isEqualTo("A")
        assertThat(responseHeaders.value(0)).isEqualTo("c")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                      });
                }
              };
          LocalCache<String, String> cache = makeLocalCache(builder, loader);
    
          assertThat(cache.getOrLoad("test")).isEqualTo("testLoad");
    
          ticker.advance(10, MILLISECONDS); // so that the next call will trigger refresh
          assertThat(cache.getOrLoad("test")).isEqualTo("testLoad");
          reloadStarted.await();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
Back to top