Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for testCase (0.23 sec)

  1. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

      private val hpackReader = Hpack.Reader(bytesIn, 4096)
    
      protected fun testDecoder(story: Story) {
        for (testCase in story.cases) {
          val encoded = testCase.wire ?: continue
          bytesIn.write(encoded)
          hpackReader.readHeaders()
          assertSetEquals(
            "seqno=$testCase.seqno",
            testCase.headersList,
            hpackReader.getAndResetHeaderList(),
          )
        }
      }
    
      companion object {
        /**
    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)
  2. okhttp/src/test/java/okhttp3/SocksProxyTest.kt

        assertThat(response.body.string()).isEqualTo("abc")
        assertThat(socksProxy.connectionCount()).isEqualTo(1)
      }
    
      @Test
      fun checkRemoteDNSResolve() {
        // This testcase will fail if the target is resolved locally instead of through the proxy.
        server.enqueue(MockResponse.Builder().body("abc").build())
        val client =
          clientTestRule.newClientBuilder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

            val taskName = "$executer${prefix.capitalize()}Test"
            val testTask = createTestTask(taskName, executer, sourceSet, testType) {}
            if (executer == defaultExecuter) {
                // The test task with the default executer runs with 'check'
                tasks.named("check").configure { dependsOn(testTask) }
            }
        }
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Mon Feb 12 13:19:06 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.authenticator
    
    import java.net.Authenticator
    import java.net.InetAddress
    import junit.framework.TestCase.assertNull
    import okhttp3.FakeDns
    import okhttp3.Protocol.HTTP_2
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.TestValueFactory
    import okhttp3.internal.RecordingAuthenticator
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

      protected open fun assertInvalid(
        string: String,
        exceptionMessage: String?,
      ) {
        assertNull(string.toMediaTypeOrNull(), exceptionMessage)
      }
    
      @Test fun testParse() {
        val mediaType = parse("text/plain;boundary=foo;charset=utf-8")
        assertEquals("text", mediaType.type)
        assertEquals("plain", mediaType.subtype)
        assertEquals("UTF-8", mediaType.charsetName())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.29.md

    - This contains the modified windows kubeproxy testcases with mock implementation ([#120105](https://github.com/kubernetes/kubernetes/pull/120105), [@princepereira](https://github.com/princepereira)) [SIG Network and Windows]
    
    ### Bug or Regression
    
    Plain Text
    - Registered: Fri May 03 09:05:14 GMT 2024
    - Last Modified: Tue Apr 16 21:41:06 GMT 2024
    - 299.9K bytes
    - Viewed (1)
  7. .teamcity/src/main/kotlin/util/RerunFlakyTest.kt

        id(id)
        val testJvmVendorParameter = "testJavaVendor"
        val testJvmVersionParameter = "testJavaVersion"
        val testTaskParameterName = "testTask"
        val testNameParameterName = "testName"
        val testTaskOptionsParameterName = "testTaskOptions"
        val daemon = true
        applyDefaultSettings(os, arch, buildJvm = BuildToolBuildJvm, timeout = 0)
    
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 24 08:17:56 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

      }
    
      @Test fun setDate() {
        val expected = Date(1000)
        val headers =
          Headers.Builder()
            .add("testDate", Date(0L))
            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(expected)
      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild.cross-version-tests.gradle.kts

        val defaultExecuter = "embedded"
        val prefix = testType.prefix
        testType.executers.forEach { executer ->
            val taskName = "$executer${prefix.capitalize()}Test"
            val testTask = createTestTask(taskName, executer, sourceSet, testType) {
                this.setSystemPropertiesOfTestJVM("latest")
                this.systemProperties["org.gradle.integtest.crossVersion"] = "true"
    
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      private val clientEventsList = mutableListOf<String>()
      private var testClient: OkHttpClient? = null
      private var uncaughtException: Throwable? = null
      private lateinit var testName: String
      private var defaultUncaughtExceptionHandler: Thread.UncaughtExceptionHandler? = null
      private var taskQueuesWereIdle: Boolean = false
      val connectionListener = RecordingConnectionListener()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top