Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 275 for isEqualTo (0.13 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

        assertThat(heldCertificate.certificatePem()).isEqualTo(certificatePem)
        assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(pkcs8Pem)
        val certificate = heldCertificate.certificate
        assertThat(certificate.notBefore.time).isEqualTo(5000L)
        assertThat(certificate.notAfter.time).isEqualTo(10000L)
        assertThat(certificate.subjectAlternativeNames.toList()).containsExactly(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        assertThat("ς".map()).isEqualTo("ς")
        assertThat("\u200c".map()).isEqualTo("\u200c")
        assertThat("\u200d".map()).isEqualTo("\u200d")
      }
    
      @Test fun ignored() {
        assertThat("\u200b".map()).isEqualTo("")
        assertThat("\ufeff".map()).isEqualTo("")
      }
    
      @Test fun disallowed() {
        assertThat("\u0080".mapExpectingErrors()).isEqualTo("\u0080")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

              "0003b00049df00112",
          ),
        )
        val result = dns.lookup("google.com")
        assertThat(result).isEqualTo(listOf(address("157.240.1.18")))
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.method).isEqualTo("GET")
        assertThat(recordedRequest.path)
          .isEqualTo("/lookup?ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
      @Test
      fun getIpv6() {
        server.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

      }
    
      @Test
      fun bytesEmpty() {
        val body = body("")
        assertThat(body.bytes().size).isEqualTo(0)
      }
    
      @Test
      fun bytesSeesBom() {
        val body = body("efbbbf68656c6c6f")
        val bytes = body.bytes()
        assertThat(bytes[0] and 0xff).isEqualTo(0xef)
        assertThat(bytes[1] and 0xff).isEqualTo(0xbb)
        assertThat(bytes[2] and 0xff).isEqualTo(0xbf)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

        assertThat(bodyToHex(body)).isEqualTo("0800")
      }
    
      @Test
      fun byteArray() {
        val contentType = "text/plain".toMediaType()
        val body: RequestBody = "abc".toByteArray().toRequestBody(contentType)
        assertThat(body.contentType()).isEqualTo(contentType)
        assertThat(body.contentLength()).isEqualTo(3)
        assertThat(bodyToHex(body)).isEqualTo("616263")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

        assertThat(cacheControl.maxAgeSeconds).isEqualTo(1)
        assertThat(cacheControl.sMaxAgeSeconds).isEqualTo(2)
        assertThat(cacheControl.isPrivate).isTrue()
        assertThat(cacheControl.isPublic).isTrue()
        assertThat(cacheControl.mustRevalidate).isTrue()
        assertThat(cacheControl.maxStaleSeconds).isEqualTo(3)
        assertThat(cacheControl.minFreshSeconds).isEqualTo(4)
        assertThat(cacheControl.onlyIfCached).isTrue()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. 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)
  8. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

          .isEqualTo("<< 0x00000000    15 SETTINGS      ")
        assertThat(frameLog(false, 0, 0, TYPE_SETTINGS, FLAG_ACK))
          .isEqualTo(">> 0x00000000     0 SETTINGS      ACK")
        assertThat(frameLog(true, 0, 0, TYPE_SETTINGS, FLAG_ACK))
          .isEqualTo("<< 0x00000000     0 SETTINGS      ACK")
        assertThat(frameLog(true, 3, 22, TYPE_HEADERS, FLAG_END_HEADERS))
          .isEqualTo("<< 0x00000003    22 HEADERS       END_HEADERS")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CacheControlTest.kt

        assertThat(cacheControl.maxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.sMaxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.isPrivate).isFalse()
        assertThat(cacheControl.isPublic).isFalse()
        assertThat(cacheControl.mustRevalidate).isFalse()
        assertThat(cacheControl.maxStaleSeconds).isEqualTo(-1)
        assertThat(cacheControl.minFreshSeconds).isEqualTo(-1)
        assertThat(cacheControl.onlyIfCached).isFalse()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(EMPTY_STATS_VARARGS.count()).isEqualTo(0);
        assertThat(EMPTY_STATS_ITERABLE.count()).isEqualTo(0);
        assertThat(ONE_VALUE_STATS.count()).isEqualTo(1);
        assertThat(TWO_VALUES_STATS.count()).isEqualTo(2);
        assertThat(MANY_VALUES_STATS_VARARGS.count()).isEqualTo(MANY_VALUES_COUNT);
        assertThat(MANY_VALUES_STATS_ITERABLE.count()).isEqualTo(MANY_VALUES_COUNT);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
Back to top