Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for setUp (0.13 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        return e as E
      }
    
      /**
       * Stops applying the timeout before the call is entirely complete. This is used for WebSockets
       * and duplex calls where the timeout only applies to the initial setup.
       */
      fun timeoutEarlyExit() {
        check(!timeoutEarlyExit)
        timeoutEarlyExit = true
        timeout.exit()
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        recoverFromOneHttp2ErrorRequiresNewConnection(ErrorCode.INTERNAL_ERROR)
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun recoverFromOneCancelRequiresNewConnection(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      fun emptyCache(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
        cache.close()
        assertJournalEquals()
      }
    
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
      fun recoverFromInitializationFailure(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  4. .github/workflows/docs.yml

          - name: Checkout
            uses: actions/checkout@v4
            with:
              fetch-depth: 0
    
          - name: Configure JDK
            uses: actions/setup-java@v4
            with:
              distribution: 'zulu'
              java-version: 17
    
          - uses: actions/setup-python@v5
            with:
              python-version: 3.x
    
          - run: pip install mkdocs-material mkdocs-redirects
    
          - name: Generate Docs
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 04 06:13:36 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [30],
    )
    class RobolectricOkHttpClientTest {
      private lateinit var context: Context
      private lateinit var client: OkHttpClient
    
      @Before
      fun setUp() {
        context = ApplicationProvider.getApplicationContext<Application>()
        client =
          OkHttpClient.Builder()
            .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
            .build()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. .github/workflows/containers.yml

            uses: actions/checkout@v4
            with:
              fetch-depth: 0
    
          - name: Configure JDK
            uses: actions/setup-java@v4
            with:
              distribution: 'zulu'
              java-version: 17
    
          - name: Setup Gradle
            uses: gradle/actions/setup-gradle@v3
    
          - name: Run Container Tests
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Mar 23 12:00:11 GMT 2024
    - 911 bytes
    - Viewed (0)
  7. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

    class HandshakeCertificatesTest {
      @RegisterExtension
      var platform = PlatformRule()
    
      private lateinit var executorService: ExecutorService
    
      private var serverSocket: ServerSocket? = null
    
      @BeforeEach fun setUp() {
        executorService = Executors.newCachedThreadPool(threadFactory("HandshakeCertificatesTest"))
      }
    
      @AfterEach fun tearDown() {
        executorService.shutdown()
        serverSocket?.closeQuietly()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

      private val executor = Executors.newCachedThreadPool(threadFactory("RelayTest"))
      private val metadata: ByteString = "great metadata!".encodeUtf8()
      private lateinit var file: File
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
      }
    
      @AfterEach
      fun tearDown() {
        executor.shutdown()
      }
    
      @Test
      fun singleSource() {
        val upstream = Buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

      private val cacheFs = FakeFileSystem()
      private val bootstrapClient =
        OkHttpClient.Builder()
          .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1))
          .build()
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
        server.protocols = bootstrapClient.protocols
        dns = buildLocalhost(bootstrapClient, false)
      }
    
      @Test
      fun getOne() {
        server.enqueue(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

          this.uriHost = ******@****.***t
          this.uriPort = ******@****.***t
        }
    
      private lateinit var call: RealCall
      private val routeDatabase = RouteDatabase()
    
      @BeforeEach fun setUp() {
        call =
          clientTestRule.newClient().newCall(
            Request.Builder()
              .url("https://$uriHost:$uriPort/")
              .build(),
          ) as RealCall
      }
    
      @AfterEach fun tearDown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
Back to top