Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 179 for robust (0.06 seconds)

  1. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

    @RunWith(AndroidJUnit4.class)
    public class IssueReproductionTest {
      @Test public void getFailsWithoutAdditionalCert() throws IOException {
        OkHttpClient client = new OkHttpClient();
    
        sendRequest(client, "https://google.com/robots.txt");
      }
    
      private void sendRequest(OkHttpClient client, String url) throws IOException {
        Request request = new Request.Builder()
                .url(url)
                .build();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 26 06:37:08 GMT 2021
    - 1.9K bytes
    - Click Count (0)
  2. docs/distributed/samples/bootstrap-partial.ldif

    cn: Alice Smith
    sn: Smith
    uid: alice1
    mail: ******@****.***
    userPassword: {SSHA}Yeh2/IV/q/HjG2yzN3YdE9CAF3EJFCLu
    
    dn: uid=bobfisher,ou=people,ou=hwengg,dc=min,dc=io
    objectClass: inetOrgPerson
    cn: Robert Fisher
    sn: Fisher
    uid: bobfisher
    mail: ******@****.***
    userPassword: {SSHA}LktfbhK5oXSdDWCNzauJ9JA+Poxinl3y
    
    dn: uid=cody3,ou=people,ou=hwengg,dc=min,dc=io
    objectClass: inetOrgPerson
    cn: Cody Thomas
    sn: Thomas
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Sep 12 15:59:00 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  3. android-test/src/androidDeviceTest/java/okhttp/android/test/StrictModeTest.kt

      }
    
      @Test
      fun testNewCall() {
        Platform.resetForTests()
    
        val client = OkHttpClient()
    
        applyStrictMode()
    
        // Safe on main
        client.newCall(Request("https://google.com/robots.txt".toHttpUrl()))
    
        assertThat(violations).isEmpty()
      }
    
      private fun applyStrictMode() {
        StrictMode.setThreadPolicy(
          ThreadPolicy
            .Builder()
            .detectCustomSlowCalls()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 26 07:38:51 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/BouncyCastleTest.kt

        OkHttpDebugLogging.enable("org.bouncycastle.jsse")
        platform.assumeBouncyCastle()
      }
    
      @Test
      fun testMozilla() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://mozilla.org/robots.txt").build()
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  5. android-test/src/androidDeviceTest/java/okhttp/android/test/letsencrypt/LetsEncryptClientTest.kt

              handshakeCertificates.trustManager,
            )
        }
    
        val client = clientBuilder.build()
    
        val request =
          Request
            .Builder()
            .url("https://valid-isrgrootx1.letsencrypt.org/robots.txt")
            .build()
        client.newCall(request).execute().use { response ->
          assertThat(response.code).isEqualTo(404)
          assertThat(response.protocol).isEqualTo(Protocol.HTTP_2)
        }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 26 07:38:51 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CorrettoTest.kt

        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    
      @Test
      @Disabled
      fun testGoogle() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://google.com/robots.txt").build()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  7. docs/features/https.md

                      .build())
              .build()
    
          fun run() {
            val request = Request.Builder()
                .url("https://publicobject.com/robots.txt")
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  8. module-tests/src/test/java/okhttp3/modules/test/JavaModuleTest.java

    class JavaModuleTest {
      @Test
      public void testVisibility() {
        // Just check we can run code that depends on OkHttp types
        OkHttpCaller.callOkHttp(HttpUrl.get("https://square.com/robots.txt"));
      }
    
      @Test
      public void testMockWebServer() throws IOException {
        MockWebServer server = new MockWebServer();
        server.enqueue(new MockResponse(200, Headers.of(), "Hello, Java9!"));
        server.start();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Sep 21 06:22:22 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/ForwardingCollectionTest.java

    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link ForwardingCollection}.
     *
     * @author Robert Konigsberg
     * @author Hayward Chan
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class ForwardingCollectionTest extends TestCase {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 20:34:52 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/ForwardingQueueTest.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@code ForwardingQueue}.
     *
     * @author Robert Konigsberg
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class ForwardingQueueTest extends TestCase {
    
      static final class StandardImplForwardingQueue<T> extends ForwardingQueue<T> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top