Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clearDispatcherQueue (0.12 sec)

  1. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

          fail<Unit>()
        } catch (expected: IOException) {
          // Expected.
        }
        server.url("/b").toUrl().openConnection().getInputStream() // Should succeed.
      }
    
      @Test
      fun clearDispatcherQueue() {
        server.enqueue(MockResponse(body = "A"))
        (server.dispatcher as QueueDispatcher).clear()
        server.enqueue(MockResponse(body = "B"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top