- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 81 for HELLO (0.02 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
.trailers(headersOf("t1", "v2")) .body(protocol, "Hello") .build(), ) val call = client.newCall(Request(server.url("/"))) call.execute().use { response -> val source = response.body.source() assertThat(response.header("h1")).isEqualTo("v1") assertThat(source.readUtf8()).isEqualTo("Hello") assertThat(response.trailers()).isEqualTo(headersOf("t1", "v2"))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 18K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java
} } public void test_startProcess_basicCommand() { String sessionId = "test_session"; List<String> cmdList = Arrays.asList("echo", "hello"); Consumer<ProcessBuilder> pbCall = pb -> { pb.redirectErrorStream(true); }; try { JobProcess jobProcess = processHelper.startProcess(sessionId, cmdList, pbCall);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 15.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
client.webSocket!!.finishReader() server.listener.assertClosed(1000, "Hello!") client.listener.assertClosed(1000, "Goodbye!") } @Test fun clientCloseThenMethodsReturnFalse() { client.webSocket!!.close(1000, "Hello!") assertThat(client.webSocket!!.close(1000, "Hello!")).isFalse() assertThat(client.webSocket!!.send("Hello!")).isFalse() } @Test fun clientCloseWith0Fails() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/BooleanFunctionTest.java
} public void test_lambda_expression() { BooleanFunction<String> startsWithHello = s -> s != null && s.startsWith("hello"); assertTrue(startsWithHello.apply("hello world")); assertTrue(startsWithHello.apply("hello")); assertFalse(startsWithHello.apply("hi world")); assertFalse(startsWithHello.apply("")); assertFalse(startsWithHello.apply(null)); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 2.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
.build(), ) val webSocket: WebSocket = newWebSocket() clientListener.assertOpen() val server = serverListener.assertOpen() webSocket.send("Hello, WebSockets!") serverListener.assertTextMessage("Hello, WebSockets!") closeWebSockets(webSocket, server) } @Test fun binaryMessage() { webServer.enqueue( MockResponse .Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
serverIpv4.enqueue( MockResponse(body = "unexpected call to IPv4"), ) serverIpv6.enqueue( MockResponse(body = "hello from IPv6"), ) val call = client.newCall(Request(url)) val response = call.execute() assertThat(response.body.string()).isEqualTo("hello from IPv6") // In the process we made one successful connection attempt.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.4K bytes - Viewed (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
assertThat(decompressed.header("Content-Encoding")).isNull() val responseString = decompressed.body.string() assertThat(responseString).isEqualTo("hello zstd world") } @Test fun testDecompressGzip() { val s = "hello gzip world".encodeUtf8().gzipCompress() val response = response("https://example.com/", s) { header("Content-Encoding", "gzip") }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
} public void test_encodeUrl_already_encoded() { assertEquals("hello", DocumentUtil.encodeUrl("hello")); assertEquals("hello-world", DocumentUtil.encodeUrl("hello-world")); assertEquals("hello_world", DocumentUtil.encodeUrl("hello_world")); assertEquals("hello.world", DocumentUtil.encodeUrl("hello.world")); } public void test_encodeUrl_empty_and_null() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
native-image-tests/src/test/kotlin/okhttp3/nativeimage/SampleTest.kt
import okhttp3.Request import org.junit.jupiter.api.Test class SampleTest { private val server = MockWebServer() private val client = OkHttpClient() @Test fun passingTest() { assertThat("hello").isEqualTo("hello") } @Test fun testMockWebServer() { server.enqueue(MockResponse(body = "abc")) server.start() client.newCall(Request(url = server.url("/"))).execute().use {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 22 20:31:49 UTC 2025 - 1.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
.build() @Test fun upgrade() { val socketHandler = MockSocketHandler() .apply { receiveRequest("client says hello\n") sendResponse("server says hello\n") receiveRequest("client says goodbye\n") sendResponse("server says goodbye\n") exhaustResponse() exhaustRequest() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 7.1K bytes - Viewed (0)