Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for assertThat (0.09 sec)

  1. 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"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        response.body.close()
        val dnsStart: DnsStart = listener.removeUpToEvent<DnsStart>()
        assertThat(dnsStart.call).isSameAs(call)
        assertThat(dnsStart.domainName).isEqualTo(server.hostName)
        val dnsEnd: DnsEnd = listener.removeUpToEvent<DnsEnd>()
        assertThat(dnsEnd.call).isSameAs(call)
        assertThat(dnsEnd.domainName).isEqualTo(server.hostName)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  3. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<Object>.TypeSet types = new TypeToken<Object>() {}.getTypes();
        assertThat(types).contains(TypeToken.of(Object.class));
        assertThat(types.rawTypes()).contains(Object.class);
        assertThat(types.interfaces()).isEmpty();
        assertThat(types.interfaces().rawTypes()).isEmpty();
        assertThat(types.classes()).contains(TypeToken.of(Object.class));
        assertThat(types.classes().rawTypes()).contains(Object.class);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(synStream.outFinished).isFalse()
        val data = peer.takeFrame()
        assertThat(data.type).isEqualTo(Http2.TYPE_DATA)
        assertArrayEquals("square".toByteArray(), data.data)
        val fin = peer.takeFrame()
        assertThat(fin.type).isEqualTo(Http2.TYPE_DATA)
        assertThat(fin.inFinished).isTrue()
        assertThat(fin.outFinished).isFalse()
        val rstStream = peer.takeFrame()
    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. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<Object>.TypeSet types = new TypeToken<Object>() {}.getTypes();
        assertThat(types).contains(TypeToken.of(Object.class));
        assertThat(types.rawTypes()).contains(Object.class);
        assertThat(types.interfaces()).isEmpty();
        assertThat(types.interfaces().rawTypes()).isEmpty();
        assertThat(types.classes()).contains(TypeToken.of(Object.class));
        assertThat(types.classes().rawTypes()).contains(Object.class);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(call2Get.method).isEqualTo("GET")
        assertThat(call2Get.path).isEqualTo("/call2")
        assertThat(call2Get.sequenceNumber).isEqualTo(0)
        val call1Get = server.takeRequest()
        assertThat(call1Get.method).isEqualTo("GET")
        assertThat(call1Get.path).isEqualTo("/call1")
        assertThat(call1Get.sequenceNumber).isEqualTo(1)
        assertThat(client.connectionPool.connectionCount()).isEqualTo(1)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      private fun assertGarbageFilesAllDeleted() {
        assertThat(filesystem.exists(getCleanFile("g1", 0))).isFalse()
        assertThat(filesystem.exists(getCleanFile("g1", 1))).isFalse()
        assertThat(filesystem.exists(getCleanFile("g2", 0))).isFalse()
        assertThat(filesystem.exists(getCleanFile("g2", 1))).isFalse()
        assertThat(filesystem.exists(cacheDir / "otherFile0")).isFalse()
        assertThat(filesystem.exists(cacheDir / "dir1")).isFalse()
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals("Iterators.consumingIterator(...)", consumingIterator.toString());
    
        assertThat(list).containsExactly("a", "b").inOrder();
    
        assertTrue(consumingIterator.hasNext());
        assertThat(list).containsExactly("a", "b").inOrder();
        assertEquals("a", consumingIterator.next());
        assertThat(list).contains("b");
    
        assertTrue(consumingIterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          int mod = i % 3;
          if (mod == 0 || mod == 2) {
            assertThat(result.get(i)).isInstanceOf(ExecutionException.class);
            assertThat((ExecutionException) result.get(i)).hasCauseThat().isSameInstanceAs(e);
          } else {
            assertThat(result.get(i)).isInstanceOf(UncheckedExecutionException.class);
            assertThat((UncheckedExecutionException) result.get(i)).hasCauseThat().isSameInstanceAs(e);
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals("Iterators.consumingIterator(...)", consumingIterator.toString());
    
        assertThat(list).containsExactly("a", "b").inOrder();
    
        assertTrue(consumingIterator.hasNext());
        assertThat(list).containsExactly("a", "b").inOrder();
        assertEquals("a", consumingIterator.next());
        assertThat(list).contains("b");
    
        assertTrue(consumingIterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
Back to top