Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 882 for val1 (0.02 sec)

  1. okhttp/src/test/java/okhttp3/LoomTest.kt

    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class LoomTest {
      @JvmField
      @RegisterExtension
      val platform = PlatformRule()
    
      @JvmField
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private lateinit var server: MockWebServer
    
      private lateinit var client: OkHttpClient
    
      @BeforeEach
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. native-image-tests/src/main/kotlin/okhttp3/SampleTest.kt

    class SampleTest {
      @JvmField @RegisterExtension
      val clientRule = OkHttpClientTestRule()
    
      @Test
      fun passingTest() {
        assertThat("hello").isEqualTo("hello")
      }
    
      @Test
      fun testMockWebServer(server: MockWebServer) {
        server.enqueue(MockResponse(body = "abc"))
    
        val client = clientRule.newClient()
    
        client.newCall(Request(url = server.url("/"))).execute().use {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/tasks/IncubatingApiAggregateReportTask.kt

    abstract class IncubatingApiAggregateReportTask : DefaultTask() {
    
        @get:InputFiles
        @get:PathSensitive(PathSensitivity.RELATIVE)
        abstract val reports: ConfigurableFileCollection
    
        @get:OutputFile
        abstract val htmlReportFile: RegularFileProperty
    
        @get:Inject
        abstract val workerExecutor: WorkerExecutor
    
        @TaskAction
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Jan 30 09:32:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/PublicApi.kt

            "org/gradle/util/**", // contains Path that clashes with `org.gradle.api.model.Path` imported above. This line should not appear before "org/gradle/api/**"
        )
    
        val excludes = listOf("**/internal/**")
    
        private val includePackagePatterns: List<Pattern> by lazy {
            includes.map {
                if (it.endsWith("/**")) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 12 23:20:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt

    class SslLabsClient(
      callFactory: Call.Factory,
    ) {
      private val moshi = Moshi.Builder().build()
    
      private val moshiConverterFactory = MoshiConverterFactory.create(moshi)
    
      private val retrofit =
        Retrofit.Builder()
          .baseUrl(SslLabsApi.BASE_URL)
          .addConverterFactory(moshiConverterFactory)
          .callFactory(callFactory)
          .build()
    
      private val sslLabsApi = retrofit.create(SslLabsApi::class.java)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.ci-reporting.gradle.kts

     * Team City.
     */
    
    val testFilesCleanup = extensions.create<TestFileCleanUpExtension>("testFilesCleanup").apply {
        reportOnly.convention(false)
    }
    
    if ("CI" in System.getenv() && project.name != "gradle-kotlin-dsl-accessors") {
        rootProject.plugins.apply(TestFilesCleanupRootPlugin::class.java)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jul 11 06:57:51 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

                it.key.bufferedWriter().use { out -> out.write(it.value) }
            }
        }
    
        private
        fun formatChanges(changes: List<AcceptedApiChange>): String {
            val gson: Gson = GsonBuilder().setPrettyPrinting().create()
            val initialString = gson.toJson(AcceptedApiChanges(changes))
            return adjustIndentation(initialString) + "\n"
        }
    
        /**
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

     */
    class OkHttpClientTest {
      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
      @Test fun get(server: MockWebServer) {
        server.enqueue(MockResponse(body = "hello, OkHttp"))
    
        val client = OkHttpClient()
    
        val request =
          Request.Builder()
            .url(server.url("/"))
            .header("Accept", "text/plain")
            .build()
        val response = client.newCall(request).execute()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Headers.kt

        return getDate(name)?.toInstant()
      }
    
      /** Returns the number of field values. */
      @get:JvmName("size")
      val size: Int
        get() = namesAndValues.size / 2
    
      @JvmName("-deprecated_size")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "size"),
        level = DeprecationLevel.ERROR,
      )
      fun size(): Int = size
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

       * index trusted CA certificates.
       */
      internal data class CustomTrustRootIndex(
        private val trustManager: X509TrustManager,
        private val findByIssuerAndSignatureMethod: Method,
      ) : TrustRootIndex {
        override fun findByIssuerAndSignature(cert: X509Certificate): X509Certificate? {
          return try {
            val trustAnchor =
              findByIssuerAndSignatureMethod.invoke(
                trustManager,
                cert,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top