- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for FailingCall (0.04 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import kotlin.reflect.KClass import okio.Timeout open class FailingCall : Call { override fun request(): Request = error("unexpected") override fun execute(): Response = error("unexpected") override fun enqueue(responseCallback: Callback): Unit = error("unexpected")Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 1.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
@Test fun eventListenerPlusNoneAggregation() { val a = EventRecorder(enforceOrder = false) val aPlusNone = a.eventListener + EventListener.NONE aPlusNone.callStart(FailingCall()) assertThat(a.takeEvent()).isInstanceOf<CallStart>() assertThat(a.eventSequence).isEmpty() } /** Make sure we didn't mess up our special case for [EventListener.NONE]. */ @Test
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 70.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
cookieJar.saveFromResponse(httpUrl, listOf(Cookie.Builder().build())) } @Test fun loggingEventListener() { var loggingEventListener: EventListener = LoggingEventListener.Factory().create(FailingCall()) } @Test fun loggingEventListenerFactory() { var factory: LoggingEventListener.Factory = LoggingEventListener.Factory()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 47K bytes - Viewed (0)