Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for connectFails (0.06 seconds)

  1. src/test/java/jcifs/util/transport/TransportTest.java

            private long nextKey = 1;
            private Long peekedKey = null;
            private IOException sendException = null;
            private IOException recvException = null;
            private boolean connectFails = false;
            private boolean disconnectResult = false;
    
            @Override
            protected long makeKey(Request request) throws IOException {
                return nextKey++;
            }
    
            @Override
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

            .build(),
        )
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        assertThat(response.header("a\tb")).isEqualTo("c")
      }
    
      @Test
      fun connectFails() {
        server.close()
        executeSynchronously("/")
          .assertFailure(IOException::class.java)
      }
    
      @Test
      fun requestBodySurvivesRetries() {
        server.enqueue(MockResponse())
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 147.4K bytes
    - Click Count (0)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""dnsStart: ${url.host}"""))
          .assertLogMatch(Regex("""callFailed: java.net.UnknownHostException: reason"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun connectFail() {
        assumeNotWindows()
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        server.enqueue(
          MockResponse
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  4. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("")
          .assertLogMatch(Regex("""<-- END HTTP \(\d+ms, binary 9-byte body omitted\)"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun connectFail() {
        setLevel(Level.BASIC)
        client =
          OkHttpClient
            .Builder()
            .dns { hostname: String? -> throw UnknownHostException("reason") }
            .addInterceptor(applicationInterceptor)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Nov 07 02:57:33 GMT 2025
    - 39.4K bytes
    - Click Count (0)
Back to Top