Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cannotAccessAddressBeforeStart (0.07 sec)

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

        val other = MockWebServer()
        other.use {
          other.start()
          assertThat(other.port).isNotEqualTo(server.port)
        }
      }
    
      @Test
      fun cannotAccessAddressBeforeStart() {
        val other = MockWebServer()
        assertFailsWith<IllegalStateException> {
          other.socketAddress
        }
        assertFailsWith<IllegalStateException> {
          other.hostName
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
Back to top