Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for defaultMockResponse (0.08 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      private val server = MockWebServer()
    
      @BeforeEach
      fun setUp() {
        server.start()
      }
    
      @AfterEach
      fun tearDown() {
        server.shutdown()
      }
    
      @Test
      fun defaultMockResponse() {
        val response = MockResponse()
        assertThat(headersToList(response)).containsExactly("Content-Length: 0")
        assertThat(response.status).isEqualTo("HTTP/1.1 200 OK")
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
        server.start()
      }
    
      @AfterEach
      fun tearDown() {
        server.shutdown()
      }
    
      @Test
      fun defaultMockResponse() {
        val builder = MockResponse.Builder()
        assertThat(headersToList(builder)).containsExactly("Content-Length: 0")
        assertThat(builder.status).isEqualTo("HTTP/1.1 200 OK")
      }
    
      @Test
    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