Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getOrComputeIfAbsent (0.33 sec)

  1. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

    class MockWebServerExtension :
      BeforeEachCallback, AfterEachCallback, ParameterResolver, BeforeAllCallback, AfterAllCallback {
      private val ExtensionContext.resource: ServersForTest
        get() =
          getStore(namespace).getOrComputeIfAbsent(this.uniqueId) {
            ServersForTest()
          } as ServersForTest
    
      private class ServersForTest {
        private val servers = mutableMapOf<String, MockWebServer>()
        private var started = false
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top