Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for assertFailsWith (0.27 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val sink2 = stream2.getSink().buffer()
        sink1.writeUtf8("abc")
        assertFailsWith<IOException> {
          sink2.writeUtf8("abc")
          sink2.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream was reset: REFUSED_STREAM")
        }
        sink1.writeUtf8("def")
        sink1.close()
        assertFailsWith<ConnectionShutdownException> {
          connection.newStream(headerEntries("c", "cola"), true)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/EventListenerTest.kt

    import java.net.Proxy
    import java.net.UnknownHostException
    import java.time.Duration
    import java.util.Arrays
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.TimeUnit
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketPolicy.DisconnectDuringRequestBody
    import mockwebserver3.SocketPolicy.DisconnectDuringResponseBody
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  3. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      private fun Editor.assertInoperable() {
        assertFailsWith<IllegalStateException> {
          setString(0, "A")
        }
        assertFailsWith<IllegalStateException> {
          newSource(0)
        }
        assertFailsWith<IllegalStateException> {
          newSink(0)
        }
        assertFailsWith<IllegalStateException> {
          commit()
        }
        assertFailsWith<IllegalStateException> {
          abort()
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun incompleteUrlComposition() {
        val noHost =
          assertFailsWith<IllegalStateException> {
            HttpUrl.Builder().scheme("http").build()
          }
        assertThat(noHost.message).isEqualTo("host == null")
        val noScheme =
          assertFailsWith<IllegalStateException> {
            HttpUrl.Builder().host("host").build()
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

    import java.util.concurrent.TimeUnit
    import java.util.concurrent.TimeoutException
    import java.util.concurrent.atomic.AtomicReference
    import javax.net.ssl.SSLException
    import kotlin.test.assertFailsWith
    import mockwebserver3.Dispatcher
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.PushPromise
    import mockwebserver3.QueueDispatcher
    import mockwebserver3.RecordedRequest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
Back to top