- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 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/internal/ws/RealWebSocketTest.kt
import java.io.EOFException import java.io.IOException import java.net.ProtocolException import java.net.SocketTimeoutException import java.util.Random import kotlin.test.assertFailsWith import okhttp3.FailingCall import okhttp3.Headers import okhttp3.Headers.Companion.headersOf import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.TestUtil.repeat import okhttp3.internal.concurrent.TaskFaker
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.7K 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)