Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for connectFails (0.09 sec)

  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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. 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)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
Back to top