- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 159 for is_true (0.13 seconds)
-
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
assertWithMessage("%s is subtype of %s", paramType, returnType) .that(TypeToken.of(paramType).isSubtypeOf(returnType)) .isTrue(); assertWithMessage("%s is supertype of %s", returnType, paramType) .that(TypeToken.of(returnType).isSupertypeOf(paramType)) .isTrue(); if (!spec.suppressGetSubtype()) { assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())).isEqualTo(paramType); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
* limitations under the License. */ package okhttp3.internal.http2 import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isFalse import assertk.assertions.isTrue import java.io.IOException import java.util.Arrays import java.util.concurrent.atomic.AtomicInteger import kotlin.math.pow import kotlin.test.assertFailsWith import okhttp3.TestUtil.headerEntries
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 28.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
for (long value : TEST_LONGS) { boolean expectSuccess = value >= 0; try { assertThat(UnsignedLong.valueOf(value).longValue()).isEqualTo(value); assertThat(expectSuccess).isTrue(); } catch (IllegalArgumentException e) { assertThat(expectSuccess).isFalse(); } } } public void testValueOfBigInteger() { BigInteger min = BigInteger.ZERO;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 10.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java
assertThatFutureBecomesCancelled(closingFuture.finishToFuture()); } @Override void cancelFinalStepAndWait(ClosingFuture<TestCloseable> closingFuture) { assertThat(closingFuture.finishToFuture().cancel(false)).isTrue(); waitUntilClosed(closingFuture); futureCancelled.countDown(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 3.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt
assertThat(isDefaultValue(chain.value())).isTrue() val withOverride = chain.withOverride(nonDefaultValue) assertThat(chain).isNotSameInstanceAs(withOverride) assertThat(isDefaultValue(withOverride.value())).isFalse() return if (isDefault) { val withDefault = withOverride.withOverride(defaultValue) assertThat(isDefaultValue(withDefault.value())).isTrue() withOverride.proceed(chain.request())
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 28.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
assertThat(Longs.contains(ARRAY234, 1L)).isFalse(); assertThat(Longs.contains(new long[] {-1L}, -1L)).isTrue(); assertThat(Longs.contains(ARRAY234, 2L)).isTrue(); assertThat(Longs.contains(ARRAY234, 3L)).isTrue(); assertThat(Longs.contains(ARRAY234, 4L)).isTrue(); } public void testIndexOf() { assertThat(Longs.indexOf(EMPTY, 1L)).isEqualTo(-1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
import assertk.assertions.isEqualTo import assertk.assertions.isFalse import assertk.assertions.isGreaterThan import assertk.assertions.isLessThan import assertk.assertions.isNull import assertk.assertions.isTrue import java.io.EOFException import java.io.IOException import java.io.InterruptedIOException import java.util.concurrent.CountDownLatch import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicInteger
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertThat(Thread.interrupted()).isTrue(); stats = cache.stats(); assertThat(stats.missCount()).isEqualTo(2); assertThat(stats.loadSuccessCount()).isEqualTo(0); assertThat(stats.loadExceptionCount()).isEqualTo(2); assertThat(stats.hitCount()).isEqualTo(0); cache.refresh(new Object()); assertThat(Thread.interrupted()).isTrue(); checkLoggedCause(e);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 91K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
called[0] = true; } @Override public void onFailure(Throwable t) {} }, directExecutor()); assertThat(called[0]).isTrue(); } // Avoid trouble with automatic mapping between JRE and Kotlin runtime classes. static class CustomRuntimeException extends RuntimeException {} public void testCatching() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java
} public void testAwaitTermination() throws Exception { boolean result = executorService.awaitTermination(Duration.ofMinutes(144)); assertThat(result).isTrue(); assertThat(recordedTimeUnit).isEqualTo(NANOSECONDS); assertThat(Duration.ofNanos(recordedTimeout)).isEqualTo(Duration.ofMinutes(144)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 4.6K bytes - Click Count (0)