Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AssertionError (0.21 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

              call: Call,
              e: IOException,
            ): Unit = throw AssertionError()
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              try {
                responseRef.put(response)
              } catch (e: InterruptedException) {
                throw AssertionError()
              }
            }
          },
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

            case WILL_CLOSE:
            case CLOSING:
            case CLOSED:
              throw new IllegalStateException("Cannot call finishToFuture() twice");
    
            case OPEN:
              throw new AssertionError();
          }
        }
        return future;
      }
    
      /**
       * Marks this step as the last step in the {@code ClosingFuture} pipeline. When this step is done,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/ClosingFuture.java

            case WILL_CLOSE:
            case CLOSING:
            case CLOSED:
              throw new IllegalStateException("Cannot call finishToFuture() twice");
    
            case OPEN:
              throw new AssertionError();
          }
        }
        return future;
      }
    
      /**
       * Marks this step as the last step in the {@code ClosingFuture} pipeline. When this step is done,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        // Confirm the interceptor isn't exercised.
        client =
          client
            .newBuilder()
            .addNetworkInterceptor(Interceptor { chain: Interceptor.Chain? -> throw AssertionError() })
            .build()
        assertThat(get(url).body.string()).isEqualTo("A")
      }
    
      @Test
      fun iterateCache() {
        // Put some responses in the cache.
        server.enqueue(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

                }
    
                override fun connectFailed(
                  uri: URI,
                  address: SocketAddress,
                  failure: IOException,
                ): Unit = throw AssertionError()
              },
            ).build()
        server2.enqueue(
          MockResponse(body = "This is the 2nd server!"),
        )
        server.enqueue(
          MockResponse(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top