Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testDnsRequestInvalid (0.27 sec)

  1. okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

    import org.robolectric.shadow.api.Shadow
    
    @Config(shadows = [ShadowDnsResolver::class], sdk = [34])
    @RunWith(RobolectricTestRunner::class)
    class AndroidAsyncDnsTest {
      @Test
      fun testDnsRequestInvalid() {
        val asyncDns = AndroidAsyncDns.IPv4
        val shadowDns: ShadowDnsResolver = Shadow.extract(asyncDns.resolver)
    
        shadowDns.responder = {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 22 20:07:09 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        assumeNetwork()
    
        val (allAddresses, exception) = dnsQuery("google.com")
    
        assertThat(exception).isNull()
        assertThat(allAddresses).isNotEmpty()
      }
    
      @Test
      fun testDnsRequestInvalid() {
        val (allAddresses, exception) = dnsQuery("google.invalid")
    
        assertThat(exception).isNull()
        assertThat(allAddresses).isEmpty()
      }
    
      @Test
      fun testRequestOnNetwork() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top