Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for assertThat (0.09 seconds)

  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)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<@Nullable Void> future = submit(runnable, executor);
        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<@Nullable Void> future = submit(runnable, executor);
        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(map.refreshNanos).isEqualTo(0);
        assertThat(map.maxWeight).isEqualTo(CacheBuilder.UNSET_INT);
    
        assertThat(map.entryFactory).isEqualTo(EntryFactory.STRONG);
        assertThat(map.removalListener).isSameInstanceAs(CacheBuilder.NullListener.INSTANCE);
        assertThat(map.removalNotificationQueue).isSameInstanceAs(DISCARDING_QUEUE);
        assertThat(map.ticker).isSameInstanceAs(NULL_TICKER);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(map.refreshNanos).isEqualTo(0);
        assertThat(map.maxWeight).isEqualTo(CacheBuilder.UNSET_INT);
    
        assertThat(map.entryFactory).isEqualTo(EntryFactory.STRONG);
        assertThat(map.removalListener).isSameInstanceAs(CacheBuilder.NullListener.INSTANCE);
        assertThat(map.removalNotificationQueue).isSameInstanceAs(DISCARDING_QUEUE);
        assertThat(map.ticker).isSameInstanceAs(NULL_TICKER);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  6. 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")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  7. 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")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/Maps.java

       * ...
       * ImmutableSet<Color> allColors = ImmutableSet.of(red, green, blue);
       *
       * ImmutableMap<String, Color> colorForName = uniqueIndex(allColors, c -> c.toString());
       * assertThat(colorForName).containsEntry("red", red);
       * }
       *
       * <p>If your index may associate multiple values with each key, use {@link
       * Multimaps#index(Iterable, Function) Multimaps.index}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Maps.java

       * ...
       * ImmutableSet<Color> allColors = ImmutableSet.of(red, green, blue);
       *
       * ImmutableMap<String, Color> colorForName = uniqueIndex(allColors, c -> c.toString());
       * assertThat(colorForName).containsEntry("red", red);
       * }
       *
       * <p>If your index may associate multiple values with each key, use {@link
       * Multimaps#index(Iterable, Function) Multimaps.index}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
Back to Top