- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 522 for assertThat (0.06 sec)
-
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt
assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("example.com")) .isEqualTo("example.com") assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("foo.example.com")) .isEqualTo("example.com") assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("foo.bar.square.com")) .isEqualTo("bar.square.com")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/text/TokenizerTest.java
import static org.junit.Assert.assertThat; import org.junit.Test; /** * @author higa * */ public class TokenizerTest { /** * @throws Exception */ @Test public void testEOF() throws Exception { final Tokenizer tokenizer = new Tokenizer(""); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF)); assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
headers = headersOf("Host", "header-host"), ), ) val response = call.execute() assertThat(response.isSuccessful).isTrue() val recordedRequest = server.takeRequest() assertThat(recordedRequest.requestUrl!!.host).isEqualTo("header-host") assertThat(recordedRequest.handshakeServerNames).containsExactly("url-host.com") } /** No SNI for literal IPv6 addresses. */ @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseBodyTest.kt
fun sourceEmpty() { val mediaType = if (null == null) null else "any/thing; charset=${null}".toMediaType() val body = "".decodeHex().toResponseBody(mediaType) val source = body.source() assertThat(source.exhausted()).isTrue() assertThat(source.readUtf8()).isEqualTo("") } @Test fun sourceClosesUnderlyingSource() { var closed = false val body: ResponseBody = object : ResponseBody() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/LineIteratorTest.java
final LineIterator it = new LineIterator(reader); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("aaa")); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("bbb")); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("ccc")); assertThat(it.hasNext(), is(not(true))); } /** * @throws Exception */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
val call = client.newCall(Request.Builder().url(server.url("/")).build()) val response = call.execute() assertThat(response.handshake!!.peerPrincipal) .isEqualTo(X500Principal("CN=Local Host")) assertThat(response.handshake!!.localPrincipal) .isEqualTo(X500Principal("CN=Jethro Willis")) assertThat(response.body.string()).isEqualTo("abc") } @Test fun clientAuthForNeeds() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 12.5K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt
assertThat(response.code).isEqualTo(200) assertThat(response.body.string()).isEqualTo("hello, OkHttp") val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain") assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip") assertThat(recorded.headers["Connection"]).isEqualTo("Keep-Alive")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
return; } File temp = Files.createTempDir(); try { assertThat(temp.exists()).isTrue(); assertThat(temp.isDirectory()).isTrue(); assertThat(temp.listFiles()).isEmpty(); File child = new File(temp, "child"); assertThat(child.createNewFile()).isTrue(); assertThat(child.delete()).isTrue(); if (!isAndroid() && !isWindows()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 4.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt
.build() execute(sanUrl).use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.priorResponse!!.code).isEqualTo(421) assertThat(response.body.string()).isEqualTo("after misdirect") } assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) assertThat(server.takeRequest().sequenceNumber).isEqualTo(1) assertThat(server.takeRequest().sequenceNumber)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 18.7K bytes - Viewed (0)