Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 275 for isEqualTo (0.08 sec)

  1. android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt

            .header("Host", "cloudflare-dns.com")
            .build()
        client.newCall(request).execute().use { response ->
          assertThat(response.code).isEqualTo(200)
          assertThat(response.protocol).isEqualTo(Protocol.HTTP_2)
    
          assertThat(response.body.string()).contains("h=cloudflare-dns.com")
        }
      }
    
      @Test
      fun getWithDns() {
        client =
          client.newBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code must be in range [1000,5000): 98724976")
        }
      }
    
      @Test fun closeReservedThrows() {
        assertFailsWith<IllegalArgumentException> {
          clientWriter.writeClose(1005, "Hello".encodeUtf8())
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code 1005 is reserved and may not be used.")
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

     */
    @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
    
    package okhttp3.dnsoverhttps
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import java.net.InetAddress
    import java.net.UnknownHostException
    import kotlin.test.assertFailsWith
    import okhttp3.AsyncDns.Companion.TYPE_A
    import okhttp3.AsyncDns.Companion.TYPE_AAAA
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(headers.type).isEqualTo(Http2.TYPE_HEADERS)
        val data1 = peer.takeFrame()
        assertThat(data1.type).isEqualTo(Http2.TYPE_DATA)
        assertThat(data1.streamId).isEqualTo(3)
        assertArrayEquals("abcde".toByteArray(), data1.data)
        val data2 = peer.takeFrame()
        assertThat(data2.type).isEqualTo(Http2.TYPE_DATA)
        assertThat(data2.streamId).isEqualTo(3)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(get(server.url("/")).body.string()).isEqualTo("A")
        assertThat(cache.requestCount()).isEqualTo(1)
        assertThat(cache.networkCount()).isEqualTo(1)
        assertThat(cache.hitCount()).isEqualTo(0)
        assertThat(get(server.url("/")).body.string()).isEqualTo("B")
        assertThat(get(server.url("/")).body.string()).isEqualTo("C")
        assertThat(cache.requestCount()).isEqualTo(3)
        assertThat(cache.networkCount()).isEqualTo(3)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/WebSocketExtensionsTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.Headers.Companion.headersOf
    import org.junit.jupiter.api.Test
    
    class WebSocketExtensionsTest {
      @Test
      fun emptyHeader() {
        assertThat(parse("")).isEqualTo(WebSocketExtensions())
      }
    
      @Test
      fun noExtensionHeader() {
        assertThat(WebSocketExtensions.parse(headersOf()))
          .isEqualTo(WebSocketExtensions())
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.indexOf(EMPTY, (double) 1)).isEqualTo(-1);
        assertThat(Doubles.indexOf(ARRAY1, (double) 2)).isEqualTo(-1);
        assertThat(Doubles.indexOf(ARRAY234, (double) 1)).isEqualTo(-1);
        assertThat(Doubles.indexOf(new double[] {(double) -1}, (double) -1)).isEqualTo(0);
        assertThat(Doubles.indexOf(ARRAY234, (double) 2)).isEqualTo(0);
        assertThat(Doubles.indexOf(ARRAY234, (double) 3)).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

            .build()
        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
        assertThat(body.contentType().toString())
          .isEqualTo("multipart/mixed; boundary=123")
        assertThat(body.parts.size).isEqualTo(1)
        assertThat(body.contentLength()).isEqualTo(33L)
        val buffer = Buffer()
        body.writeTo(buffer)
        assertThat(body.contentLength()).isEqualTo(buffer.size)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(Chars.indexOf(EMPTY, (char) 1)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY1, (char) 2)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY234, (char) 1)).isEqualTo(-1);
        assertThat(Chars.indexOf(new char[] {(char) -1}, (char) -1)).isEqualTo(0);
        assertThat(Chars.indexOf(ARRAY234, (char) 2)).isEqualTo(0);
        assertThat(Chars.indexOf(ARRAY234, (char) 3)).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.indexOf(EMPTY, (byte) 1)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY1, (byte) 2)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY234, (byte) 1)).isEqualTo(-1);
        assertThat(Bytes.indexOf(new byte[] {(byte) -1}, (byte) -1)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, (byte) 2)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, (byte) 3)).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top