Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for afterEach (0.62 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

    import okhttp3.internal.http2.Http2Connection
    import okhttp3.internal.http2.Http2ConnectionTest
    import okhttp3.internal.http2.MockHttp2Peer
    import okhttp3.internal.http2.Settings
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    class ConnectionPoolTest {
      private val routePlanner = FakeRoutePlanner()
      private val factory = routePlanner.factory
      private val taskFaker = routePlanner.taskFaker
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

    import kotlin.test.assertFailsWith
    import okhttp3.FakeRoutePlanner
    import okhttp3.FakeRoutePlanner.ConnectState.TLS_CONNECTED
    import okhttp3.internal.concurrent.TaskFaker
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    /**
     * Unit test for [FastFallbackExchangeFinder] implementation details.
     *
     * This test uses [TaskFaker] to deterministically test racy code. Each function in this test has
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isSameAs
    import java.util.concurrent.RejectedExecutionException
    import kotlin.test.assertFailsWith
    import okhttp3.TestLogHandler
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class TaskRunnerTest {
      private val taskFaker = TaskFaker()
    
      @RegisterExtension @JvmField
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 23K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

    import okio.Source
    import okio.buffer
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Assertions.assertArrayEquals
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    
    @Timeout(5)
    @Tag("Slow")
    class Http2ConnectionTest {
      private val peer = MockHttp2Peer()
      private val taskFaker = TaskFaker()
    
      @AfterEach fun tearDown() {
        peer.close()
        taskFaker.close()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top