Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertFalse (0.19 sec)

  1. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

            .build()
    
        client.get("https://www.facebook.com/robots.txt")
    
        if (Build.VERSION.SDK_INT < 24) {
          assertFalse(withHostCalled)
          assertTrue(withoutHostCalled)
        } else {
          assertTrue(withHostCalled)
          assertFalse(withoutHostCalled)
        }
      }
    
      @Test
      fun testUnderscoreRequest() {
        assumeNetwork()
    
        val request =
    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)
  2. okhttp/src/test/java/okhttp3/CertificatePinnerTest.kt

        Assertions.assertTrue(pin.matchesHostname("gopher.example.co.uk"))
        Assertions.assertFalse(pin.matchesHostname("www.example.com"))
      }
    
      @Test
      fun testMatchesSha256() {
        val pin = CertificatePinner.Pin("example.com", certA1Sha256Pin)
        Assertions.assertTrue(pin.matchesCertificate(certA1.certificate))
        Assertions.assertFalse(pin.matchesCertificate(certB1.certificate))
      }
    
      @Test
      fun testMatchesSha1() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top