Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NoSuchElementException (0.26 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        dns.assertRequests(uriHost)
        assertThat(selection.hasNext()).isFalse()
        assertFailsWith<NoSuchElementException> {
          selection.next()
        }
        assertThat(routeSelector.hasNext()).isFalse()
        assertFailsWith<NoSuchElementException> {
          routeSelector.next()
        }
      }
    
      @Test fun singleRouteReturnsFailedRoute() {
        val address = factory.newAddress()
    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)
  2. okhttp/src/main/kotlin/okhttp3/Cache.kt

                // has disappeared! Skip it.
              }
            }
    
            return false
          }
    
          override fun next(): String {
            if (!hasNext()) throw NoSuchElementException()
            val result = nextUrl!!
            nextUrl = null
            canRemove = true
            return result
          }
    
          override fun remove() {
            check(canRemove) { "remove() before next()" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

                return true
              }
            }
    
            return false
          }
    
          override fun next(): Snapshot {
            if (!hasNext()) throw NoSuchElementException()
            removeSnapshot = nextSnapshot
            nextSnapshot = null
            return removeSnapshot!!
          }
    
          override fun remove() {
            val removeSnapshot = this.removeSnapshot
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
Back to top