Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for isSameAs (0.15 sec)

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

            .build()
        assertThat(request.tag()).isSameAs(objectTag)
        assertThat(request.tag(Any::class.java)).isSameAs(objectTag)
        assertThat(request.tag(UUID::class.java)).isSameAs(uuidTag)
        assertThat(request.tag(String::class.java)).isSameAs(stringTag)
        assertThat(request.tag(Long::class.javaObjectType)).isSameAs(longTag)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

            .tag(tag as Any)
            .build()
        assertThat(request.tag<Any>()).isSameAs(tag)
        assertThat(request.tag(Any::class)).isSameAs(tag)
        assertThat(request.tag(String::class)).isNull()
    
        // Alternate access APIs also work.
        assertThat(request.tag<Any>()).isSameAs(tag)
        assertThat(request.tag(Any::class)).isSameAs(tag)
      }
    
      @Test
      fun nullRemovesTag() {
        val request =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        response.body.close()
        val dnsStart: DnsStart = listener.removeUpToEvent<DnsStart>()
        assertThat(dnsStart.call).isSameAs(call)
        assertThat(dnsStart.domainName).isEqualTo(server.hostName)
        val dnsEnd: DnsEnd = listener.removeUpToEvent<DnsEnd>()
        assertThat(dnsEnd.call).isSameAs(call)
        assertThat(dnsEnd.domainName).isEqualTo(server.hostName)
        assertThat(dnsEnd.inetAddressList.size).isEqualTo(1)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  4. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

          .isEqualTo(System.identityHashCode(cs))
      }
    
      @Test
      fun instancesAreInterned() {
        assertThat(forJavaName("TestCipherSuite"))
          .isSameAs(forJavaName("TestCipherSuite"))
        assertThat(forJavaName(CipherSuite.TLS_KRB5_WITH_DES_CBC_MD5.javaName))
          .isSameAs(CipherSuite.TLS_KRB5_WITH_DES_CBC_MD5)
      }
    
      /**
       * Tests that interned CipherSuite instances remain the case across garbage collections, even if
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        // Multiple clients share the instances.
        val b = client.newBuilder().build()
        assertThat(b.dispatcher).isSameAs(a.dispatcher)
        assertThat(b.connectionPool).isSameAs(a.connectionPool)
        assertThat(b.sslSocketFactory).isSameAs(a.sslSocketFactory)
        assertThat(b.x509TrustManager).isSameAs(a.x509TrustManager)
      }
    
      @Test fun setProtocolsRejectsHttp10() {
        val builder = OkHttpClient.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isSameAs
    import assertk.assertions.isTrue
    import java.util.concurrent.TimeUnit
    import kotlin.test.assertFailsWith
    import okhttp3.CacheControl.Companion.parse
    import okhttp3.Headers.Companion.headersOf
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        assertRoute(routes[0], address, Proxy.NO_PROXY, dns.lookup(uriHost, 0), uriPort)
        assertRoute(routes[1], address, Proxy.NO_PROXY, dns.lookup(uriHost, 1), uriPort)
        assertThat(selection.next()).isSameAs(routes[0])
        assertThat(selection.next()).isSameAs(routes[1])
        assertThat(selection.hasNext()).isFalse()
        assertThat(routeSelector.hasNext()).isFalse()
      }
    
      @Test fun addressesNotSortedWhenFastFallbackIsOff() {
        val address =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

    package okhttp3.internal.ws
    
    import assertk.assertThat
    import assertk.assertions.contains
    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import assertk.assertions.isSameAs
    import java.io.IOException
    import java.util.concurrent.LinkedBlockingQueue
    import java.util.concurrent.TimeUnit
    import okhttp3.Response
    import okhttp3.WebSocket
    import okhttp3.WebSocketListener
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.containsExactlyInAnyOrder
    import assertk.assertions.isEmpty
    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
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

     */
    package okhttp3.logging
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isLessThan
    import assertk.assertions.isLessThanOrEqualTo
    import assertk.assertions.isSameAs
    import assertk.assertions.matches
    import java.net.UnknownHostException
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.HttpUrl
    import okhttp3.Interceptor
    import okhttp3.MediaType
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
Back to top