- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 510 for isTrue (0.19 seconds)
-
guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
assertThat(future.set(1)).isTrue(); assertSuccessful(future, 1); } public void testFailed() throws Exception { Exception cause = new Exception(); assertThat(future.setException(cause)).isTrue(); assertFailed(future, cause); } public void testCanceled() throws Exception { assertThat(future.cancel(false /* mayInterruptIfRunning */)).isTrue(); assertCancelled(future, false); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 16.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionSpecTest.kt
val set: MutableSet<Any> = CopyOnWriteArraySet() assertThat(set.add(ConnectionSpec.MODERN_TLS)).isTrue() assertThat(set.add(ConnectionSpec.COMPATIBLE_TLS)).isTrue() assertThat(set.add(ConnectionSpec.CLEARTEXT)).isTrue() assertThat(set.add(allTlsVersions)).isTrue() assertThat(set.add(allCipherSuites)).isTrue() allCipherSuites.hashCode() assertThat(allCipherSuites.equals(null)).isFalse()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 14.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt
assertThat(cookie!!.matches("http://☃.net/".toHttpUrl())).isTrue() assertThat(cookie.matches("http://xn--n3h.net/".toHttpUrl())).isTrue() assertThat(cookie.matches("http://www.☃.net/".toHttpUrl())).isTrue() assertThat(cookie.matches("http://www.xn--n3h.net/".toHttpUrl())).isTrue() } @Test fun punycodeDomainMatches() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 24.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt
assertThat(pool.connectionCount()).isEqualTo(0) assertThat(c1.socket().isClosed).isTrue() // Running again, the pool reports that no further runs are necessary. assertThat(pool.closeConnections(150L)).isEqualTo(-1) assertThat(pool.connectionCount()).isEqualTo(0) assertThat(c1.socket().isClosed).isTrue() } @Test fun inUseConnectionsNotEvicted() { val pool = factory.newConnectionPool()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 8.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(segment.containsKey(key, hash)).isTrue(); assertThat(segment.containsValue(value)).isTrue(); assertThat(segment.containsValue(dummyValue)).isTrue(); // expired dummy.setAccessTime(ticker.read() - 2); assertThat(segment.get(key, hash)).isNull(); assertThat(segment.containsKey(key, hash)).isFalse(); assertThat(segment.containsValue(value)).isTrue();
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) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(segment.containsKey(key, hash)).isTrue(); assertThat(segment.containsValue(value)).isTrue(); assertThat(segment.containsValue(dummyValue)).isTrue(); // expired dummy.setAccessTime(ticker.read() - 2); assertThat(segment.get(key, hash)).isNull(); assertThat(segment.containsKey(key, hash)).isFalse(); assertThat(segment.containsValue(value)).isTrue();
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) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
assertThat(client.webSocket!!.pong("Pong?".encodeUtf8())).isTrue() } @Test fun clientCanWriteMessagesAfterServerClose() { server.webSocket!!.close(1000, "Hello!") client.processNextFrame() client.listener.assertClosing(1000, "Hello!") assertThat(client.webSocket!!.send("Hi!")).isTrue() server.processNextFrame() server.listener.assertTextMessage("Hi!") }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 18.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CorrettoTest.kt
// assertThat(it.handshake()!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3) } } } @Test fun testIfSupported() { assertThat(PlatformRule.isCorrettoSupported).isTrue() assertThat(PlatformRule.isCorrettoInstalled).isTrue() }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheControlTest.kt
) assertThat(cacheControl.noCache).isTrue() assertThat(cacheControl.noStore).isTrue() assertThat(cacheControl.maxAgeSeconds).isEqualTo(1) assertThat(cacheControl.maxStaleSeconds).isEqualTo(2) assertThat(cacheControl.minFreshSeconds).isEqualTo(3) assertThat(cacheControl.onlyIfCached).isTrue() assertThat(cacheControl.noTransform).isTrue() assertThat(cacheControl.immutable).isTrue()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertThat(map.containsKey(one)).isTrue(); assertThat(map.containsValue(one)).isTrue(); Object two = new Object(); assertThat(map.replace(one, two)).isSameInstanceAs(one); assertThat(map.containsKey(one)).isTrue(); assertThat(map.containsValue(one)).isFalse(); Object three = new Object(); assertThat(map.replace(one, two, three)).isTrue(); assertThat(map.remove(one, three)).isTrue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 13.1K bytes - Click Count (0)