Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 813 for assertThat (0.25 sec)

  1. okhttp/src/jvmTest/java/okhttp3/CookieTest.kt

      @Test fun invalidCharacters() {
        assertThat(parse(url, "a\u0000b=cd")).isNull()
        assertThat(parse(url, "ab=c\u0000d")).isNull()
        assertThat(parse(url, "a\u0001b=cd")).isNull()
        assertThat(parse(url, "ab=c\u0001d")).isNull()
        assertThat(parse(url, "a\u0009b=cd")).isNull()
        assertThat(parse(url, "ab=c\u0009d")).isNull()
        assertThat(parse(url, "a\u001fb=cd")).isNull()
        assertThat(parse(url, "ab=c\u001fd")).isNull()
    Plain Text
    - Registered: 2023-12-15 11:42
    - Last Modified: 2023-10-02 20:48
    - 23.9K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        derReader.read("test") { header ->
          assertThat(header.tag).isEqualTo(2L)
          assertThat(header.tagClass).isEqualTo(DerHeader.TAG_CLASS_CONTEXT_SPECIFIC)
          assertThat(header.length).isEqualTo(7L)
    
          derReader.read("test") { header ->
            assertThat(header.tag).isEqualTo(3L)
            assertThat(header.tagClass).isEqualTo(DerHeader.TAG_CLASS_APPLICATION)
            assertThat(header.length).isEqualTo(5L)
    Plain Text
    - Registered: 2024-02-23 11:42
    - Last Modified: 2024-01-08 01:13
    - 31.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(url.resolve("#s")).isEqualTo(parse("http://a/b/c/d;p?q#s"))
        assertThat(url.resolve("g#s")).isEqualTo(parse("http://a/b/c/g#s"))
        assertThat(url.resolve("g?y#s")).isEqualTo(parse("http://a/b/c/g?y#s"))
        assertThat(url.resolve(";x")).isEqualTo(parse("http://a/b/c/;x"))
        assertThat(url.resolve("g;x")).isEqualTo(parse("http://a/b/c/g;x"))
        assertThat(url.resolve("g;x?y#s")).isEqualTo(parse("http://a/b/c/g;x?y#s"))
    Plain Text
    - Registered: 2024-02-23 11:42
    - Last Modified: 2024-01-08 01:13
    - 67.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertThat(newArray.length, is(2));
            assertThat(newArray[0], is("111"));
            assertThat(newArray[1], is("222"));
    
            final String[] emptyArray = new String[0];
            assertThat(ArrayUtil.addAll((Object[]) null, (Object[]) null), is(nullValue()));
            assertThat(ArrayUtil.addAll(null, emptyArray).length, is(0));
    Java
    - Registered: 2024-02-23 20:58
    - Last Modified: 2022-01-19 23:41
    - 10.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ShortsTest.java

      public void testConcat() {
        assertThat(Shorts.concat()).isEqualTo(EMPTY);
        assertThat(Shorts.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Shorts.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
        assertThat(Shorts.concat(ARRAY1)).isEqualTo(ARRAY1);
        assertThat(Shorts.concat(ARRAY1)).isNotSameInstanceAs(ARRAY1);
        assertThat(Shorts.concat(EMPTY, ARRAY1, EMPTY)).isEqualTo(ARRAY1);
        assertThat(Shorts.concat(ARRAY1, ARRAY1, ARRAY1))
    Java
    - Registered: 2024-02-23 12:43
    - Last Modified: 2024-02-20 17:00
    - 26.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        @Test
        public void testConcatName() {
            assertThat(ClassUtil.concatName("aaa", "bbb"), is("aaa.bbb"));
            assertThat(ClassUtil.concatName("aaa", null), is("aaa"));
            assertThat(ClassUtil.concatName("aaa", ""), is("aaa"));
            assertThat(ClassUtil.concatName(null, "bbb"), is("bbb"));
            assertThat(ClassUtil.concatName("", "bbb"), is("bbb"));
            assertThat(ClassUtil.concatName("", "bbb"), is("bbb"));
    Java
    - Registered: 2024-02-23 20:58
    - Last Modified: 2022-01-19 23:41
    - 6.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat("::13.1.68.3".canParseAsIpAddress()).isTrue
        assertThat("::FFFF:129.144.52.38".canParseAsIpAddress()).isTrue
    
        // Hostnames
        assertThat("go".canParseAsIpAddress()).isFalse
        assertThat("localhost".canParseAsIpAddress()).isFalse
        assertThat("squareup.com".canParseAsIpAddress()).isFalse
        assertThat("www.nintendo.co.jp".canParseAsIpAddress()).isFalse
    Plain Text
    - Registered: 2023-12-15 11:42
    - Last Modified: 2023-01-01 01:39
    - 39.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

        assertThat(source.readUtf8()).isEqualTo("hello")
      }
    
      @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)
    Plain Text
    - Registered: 2024-02-23 11:42
    - Last Modified: 2024-01-08 01:13
    - 13K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/java/okhttp3/CacheTest.java

        assertThat(cache.networkCount()).isEqualTo(1);
        assertThat(cache.hitCount()).isEqualTo(0);
        assertThat(get(server.url("/")).body().string()).isEqualTo("A");
        assertThat(get(server.url("/")).body().string()).isEqualTo("A");
        assertThat(cache.requestCount()).isEqualTo(3);
        assertThat(cache.networkCount()).isEqualTo(1);
        assertThat(cache.hitCount()).isEqualTo(2);
      }
    
    Java
    - Registered: 2023-12-15 11:42
    - Last Modified: 2023-11-20 16:20
    - 112.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

          .isEqualTo("google.co.uk")
        assertThat("https://栃.栃木.jp".toHttpUrl().topPrivateDomain())
          .isEqualTo("xn--ewv.xn--4pvxs.jp")
        assertThat("https://xn--ewv.xn--4pvxs.jp".toHttpUrl().topPrivateDomain())
          .isEqualTo("xn--ewv.xn--4pvxs.jp")
        assertThat("https://co.uk".toHttpUrl().topPrivateDomain()).isNull()
        assertThat("https://square".toHttpUrl().topPrivateDomain()).isNull()
    Plain Text
    - Registered: 2024-02-23 11:42
    - Last Modified: 2024-01-08 01:13
    - 11.9K bytes
    - Viewed (0)
Back to top