- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for findEvent (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt
throw AssertionError("full event sequence: $fullEventSequence", e) } } inline fun <reified T : CallEvent> removeUpToEvent(): T = removeUpToEvent(T::class.java) inline fun <reified T : CallEvent> findEvent(): T = eventSequence.first { it is T } as T /** * Remove and return the next event from the recorded sequence. * * @param eventClass a class to assert that the returned event is an instance of, or null to
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 4.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
ResponseBodyStart::class, ResponseBodyEnd::class, ConnectionReleased::class, CallEnd::class, RequestFailed::class, ) assertThat(eventRecorder.findEvent<FollowUpDecision>()).all { prop(FollowUpDecision::nextRequest).isNotNull() } } /** * Auth requires follow-ups. Unlike redirects, the auth follow-up also has a request body. ThisCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 25.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
RequestBodyEnd::class, ResponseFailed::class, RetryDecision::class, ConnectionReleased::class, CallFailed::class, ) assertThat(eventRecorder.findEvent<RetryDecision>()).all { prop(RetryDecision::retry).isFalse() } eventRecorder.clearAllEvents() val response3 = client.newCall(request1).execute()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 147.4K bytes - Click Count (0)