- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 158 for assertThat (0.74 seconds)
-
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) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
ByteStreams.newDataInput( "This is a line\r\nThis too\rand this\nand also this".getBytes(UTF_8)); assertThat(in.readLine()).isEqualTo("This is a line"); assertThat(in.readLine()).isEqualTo("This too"); assertThat(in.readLine()).isEqualTo("and this"); assertThat(in.readLine()).isEqualTo("and also this"); } public void testNewDataInput_readFloat() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
assertThat(MoreFiles.getFileExtension(FS.getPath("blah.tar.gz"))).isEqualTo("gz"); assertThat(MoreFiles.getFileExtension(root())).isEqualTo(""); assertThat(MoreFiles.getFileExtension(FS.getPath("."))).isEqualTo(""); assertThat(MoreFiles.getFileExtension(FS.getPath(".."))).isEqualTo(""); assertThat(MoreFiles.getFileExtension(FS.getPath("..."))).isEqualTo("");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 26.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
Stopwatch stopwatch = Stopwatch.createStarted(); String result = proxy.sleepThenReturnInput("x"); assertThat(result).isEqualTo("x"); assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(DELAY_MS, ENOUGH_MS)); assertThat(target.finished).isTrue(); } public void testNewProxy_goodMethodWithNotEnoughTime() throws Exception { SampleImpl target = new SampleImpl(9999);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 9.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
} public void testOf() { assertThat(Optional.of("training").get()).isEqualTo("training"); } public void testOf_null() { assertThrows(NullPointerException.class, () -> Optional.of(null)); } public void testFromNullable() { Optional<String> optionalName = Optional.fromNullable("bob"); assertThat(optionalName.get()).isEqualTo("bob"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
public void testFromFluentFuture() { FluentFuture<String> f = FluentFuture.from(SettableFuture.create()); assertThat(FluentFuture.from(f)).isSameInstanceAs(f); } public void testFromFluentFuturePassingAsNonFluent() { ListenableFuture<String> f = FluentFuture.from(SettableFuture.create()); assertThat(FluentFuture.from(f)).isSameInstanceAs(f); } public void testFromNonFluentFuture() 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/net/InternetDomainNameTest.java
assertFalse(name, domain.isTopDomainUnderRegistrySuffix()); } } public void testParent() { assertThat(InternetDomainName.from("google.com").parent().toString()).isEqualTo("com"); assertThat(InternetDomainName.from("co.uk").parent().toString()).isEqualTo("uk"); assertThat(InternetDomainName.from("www.google.com").parent().toString()) .isEqualTo("google.com");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 17.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
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) -
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)