Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 198 for test3 (0.18 sec)

  1. container-tests/README.md

    OkHttp Container Tests
    ======================
    
    This module contains tests against other services
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 09:58:21 GMT 2024
    - 113 bytes
    - Viewed (0)
  2. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

    import org.junit.jupiter.params.ParameterizedTest
    import org.junit.jupiter.params.provider.ArgumentsSource
    
    /**
     * Tests for round-tripping headers through hpack.
     *
     * TODO: update hpack-test-case with the output of our encoder.
     * This test will hide complementary bugs in the encoder and decoder,
     * We should test that the encoder is producing responses that are
     */
    class HpackRoundTripTest : HpackDecodeTestBase() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.internal.http2.hpackjson.HpackJsonUtil
    import okhttp3.internal.http2.hpackjson.Story
    import okio.Buffer
    
    /**
     * Tests Hpack implementation using https://github.com/http2jp/hpack-test-case/
     */
    open class HpackDecodeTestBase {
      private val bytesIn = Buffer()
      private val hpackReader = Hpack.Reader(bytesIn, 4096)
    
      protected fun testDecoder(story: Story) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. mockwebserver/README.md

      assertEquals("/v1/chat/messages/3", request3.getPath());
    
      // Shut down the server. Instances cannot be reused.
      server.shutdown();
    }
    ```
    
    Your unit tests might move the `server` into a field so you can shut it down
    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      }
    
      @Test
      fun serverClosesSocket() {
        testServerClosesOutput(DisconnectAtEnd)
      }
    
      @Test
      fun serverShutdownInput() {
        testServerClosesOutput(ShutdownInputAtEnd)
      }
    
      @Test
      fun serverShutdownOutput() {
        testServerClosesOutput(ShutdownOutputAtEnd)
      }
    
      @Test
      fun invalidHost() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

    import assertk.assertions.hasMessage
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import kotlin.test.Ignore
    import kotlin.test.Test
    import kotlin.test.assertEquals
    import kotlin.test.assertFailsWith
    import kotlin.test.fail
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.UrlComponentEncodingTester.Encoding
    import okhttp3.testing.PlatformVersion
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  7. regression-test/README.md

    ```
    
    3. Run tests using gradle
    
    ```
    $ ANDROID_SDK_ROOT=/Users/myusername/Library/Android/sdk ./gradlew :regression-test:connectedCheck
    ...
    > Task :regression-test:connectedDebugAndroidTest
    ...
    11:55:40 V/InstrumentationResultParser: Time: 13.271
    11:55:40 V/InstrumentationResultParser:
    11:55:40 V/InstrumentationResultParser: OK (12 tests)
    ...
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Nov 13 07:09:56 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  8. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

     * Runs MockWebServer for the duration of a single test method.
     *
     * Specifically while junit instances passes into test constructor
     * are typically shares amongst all tests, a fresh instance will be
     * received here. Use with @BeforeAll and @AfterAll, is not supported.
     *
     * There are 3 ids for instances
     * - The test instance default (passed into constructor)
     * - The test lifecycle default (passed into test method, plus @BeforeEach, @AfterEach)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 11 12:12:36 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  9. android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt

    import okhttp3.Request
    import org.junit.jupiter.api.Assumptions.assumeTrue
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    /**
     * Tests for SNI overriding on Android.
     */
    @Tag("Remote")
    class SniOverrideTest {
      var client =
        OkHttpClient.Builder()
          .build()
    
      @Test
      fun getWithCustomSocketFactory() {
        assumeTrue(Build.VERSION.SDK_INT >= 24)
    
        class CustomSSLSocketFactory(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

    import org.junit.jupiter.params.provider.ArgumentsSource
    
    /** Runs the web platform URL tests against Java URL models.  */
    class WebPlatformUrlTest {
      class TestDataParamProvider : SimpleProvider() {
        override fun arguments() = ArrayList<Any>(loadTests())
      }
    
      /** Test how [HttpUrl] does against the web platform test suite.  */
      @ArgumentsSource(TestDataParamProvider::class)
      @ParameterizedTest
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
Back to top