Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for test1 (0.24 sec)

  1. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        }
      }
    
      @Test
      fun failOnBadResponse() {
        server.enqueue(dnsResponse("00"))
        try {
          dns.lookup("google.com")
          fail<Any>()
        } catch (ioe: IOException) {
          assertThat(ioe).hasMessage("google.com")
          assertThat(ioe.cause!!).isInstanceOf<EOFException>()
        }
      }
    
      // TODO GET preferred order - with tests to confirm this
    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)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp.android.test
    
    import android.os.Build
    import androidx.test.platform.app.InstrumentationRegistry
    import com.google.android.gms.common.GooglePlayServicesNotAvailableException
    import com.google.android.gms.security.ProviderInstaller
    import com.squareup.moshi.Moshi
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      }
    
      @Test
      fun portImplicitlyStarts() {
        assertThat(server.port).isGreaterThan(0)
      }
    
      @Test
      fun hostnameImplicitlyStarts() {
        assertThat(server.hostName).isNotNull()
      }
    
      @Test
      fun toProxyAddressImplicitlyStarts() {
        assertThat(server.toProxyAddress()).isNotNull()
      }
    
      @Test
      fun differentInstancesGetDifferentPorts() {
        val other = MockWebServer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

    import java.net.ProtocolException
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okio.Buffer
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    @Tag("Slowish")
    class MultipartReaderTest {
      @Test fun `parse multipart`() {
        val multipart =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    import java.net.UnknownHostException
    import kotlin.test.assertFailsWith
    import okhttp3.Address
    import okhttp3.ConnectionListener
    import okhttp3.FakeDns
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Request
    import okhttp3.Route
    import okhttp3.TestValueFactory
    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)
  6. okhttp/src/test/java/okhttp3/CookiesTest.kt

    import okhttp3.Cookie.Companion.parse
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    import org.junit.jupiter.api.extension.RegisterExtension
    
    /** Derived from Android's CookiesTest.  */
    @Timeout(30)
    class CookiesTest {
      @RegisterExtension
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        url = server.url("/")
      }
    
      @Test
      fun levelGetter() {
        // The default is NONE.
        assertThat(applicationInterceptor.level).isEqualTo(Level.NONE)
        for (level in Level.entries) {
          applicationInterceptor.setLevel(level)
          assertThat(applicationInterceptor.level).isEqualTo(level)
        }
      }
    
      @Test
      fun setLevelShouldReturnSameInstanceOfInterceptor() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

          )
          .build()
      }
    
      private fun buildServerSslSocketFactory(): SSLSocketFactory {
        // The test uses JDK default SSL Context instead of the Platform provided one
        // as Conscrypt seems to have some differences, we only want to test client side here.
        return try {
          val keyManager =
            newKeyManager(
              null,
              serverCert,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

    import okhttp3.internal.effectiveCipherSuites
    import okhttp3.internal.platform.Platform
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class CallHandshakeTest {
      private lateinit var client: OkHttpClient
      private lateinit var server: MockWebServer
    
      @RegisterExtension
      @JvmField
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    //  s:file p:/
    ///  s:file p:/
    ///test  s:file p:/test
    file://test  s:file h:test p:/
    file://localhost  s:file h:localhost p:/
    file://localhost/  s:file h:localhost p:/
    file://localhost/test  s:file h:localhost p:/test
    test  s:file p:/tmp/mock/test
    file:test  s:file p:/tmp/mock/test
    
    # Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/path.js
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top