- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 524 for isEqualTo (0.08 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java
service.notifyFailed(new Exception("1")); service.notifyFailed(new Exception("2")); assertThat(service.failureCause()).hasMessageThat().isEqualTo("1"); IllegalStateException e = assertThrows(IllegalStateException.class, service::awaitRunning); assertThat(e).hasCauseThat().hasMessageThat().isEqualTo("1"); } private class ThreadedService extends AbstractService {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 28.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java
service.notifyFailed(new Exception("1")); service.notifyFailed(new Exception("2")); assertThat(service.failureCause()).hasMessageThat().isEqualTo("1"); IllegalStateException e = assertThrows(IllegalStateException.class, service::awaitRunning); assertThat(e).hasCauseThat().hasMessageThat().isEqualTo("1"); } private class ThreadedService extends AbstractService {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 28.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteStreamsTest.java
"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) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt
assertThat("☃.net".toCanonicalHost()).isEqualTo("xn--n3h.net") // IPv4 Compatible or Mapped addresses assertThat("::192.168.0.1".toCanonicalHost()).isEqualTo("::c0a8:1") assertThat("::FFFF:192.168.0.1".toCanonicalHost()).isEqualTo("192.168.0.1") assertThat("0:0:0:0:0:0:13.1.68.3".toCanonicalHost()).isEqualTo("::d01:4403") assertThat("::13.1.68.3".toCanonicalHost()).isEqualTo("::d01:4403")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt
assertThat(responseA.body.string()).isEqualTo("a") assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) val responseB = client.newCall(request).execute() assertThat(responseB.body.string()).isEqualTo("b") assertThat(server.takeRequest().exchangeIndex).isEqualTo(1) assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) } @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.3K bytes - Click Count (1) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(newValue); assertThat(cache.getUnchecked(newKey)).isEqualTo(entry.getValue()); // don't let the new entry get GCed warmed.add(entryOf(newKey, entry.getValue())); } assertThat(cache.stats().missCount()).isEqualTo(WARMUP_SIZE); checkValidState(cache); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt
assertThat(httpUrl.toUri().toString()).isEqualTo("http://\$tracker/") } @Test fun fragmentNonAsciiThatOffendsJavaNetUri() { val url = "http://host/#\u0080".toHttpUrl() assertThat(url.toString()).isEqualTo("http://host/#\u0080") assertThat(url.fragment).isEqualTo("\u0080") assertThat(url.encodedFragment).isEqualTo("\u0080") // Control characters may be stripped!
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 12K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/EnumsTest.java
Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class); assertThat(converter.reverse().convert(TestEnum.CHEETO)).isEqualTo("CHEETO"); assertThat(converter.reverse().convert(TestEnum.HONDA)).isEqualTo("HONDA"); assertThat(converter.reverse().convert(TestEnum.POODLE)).isEqualTo("POODLE"); } @J2ktIncompatible public void testStringConverter_nullPointerTester() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 01:05:11 GMT 2026 - 8.4K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
val call = client.newCall(networkRequest) call.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNull() } val cachedCall = client.newCall(request) cachedCall.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNotNull() } } @TestCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 22 20:03:31 GMT 2025 - 2.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
}.buffer() } } assertThat(body.source().readUtf8()).isEqualTo("hello") body.close() } @Test fun unicodeText() { val text = "eile oli oliiviõli" val body = text.toResponseBody() assertThat(body.string()).isEqualTo(text) } @Test fun unicodeTextWithCharset() { val text = "eile oli oliiviõli"
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.9K bytes - Click Count (0)