- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 134 for mockwebserver (0.09 sec)
-
okhttp/src/test/java/okhttp3/LoomTest.kt
import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isTrue import java.util.concurrent.ExecutorService import java.util.concurrent.Executors import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import okhttp3.testing.PlatformRule import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension class LoomTest {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
mockwebserver/api/mockwebserver3.api
public final class mockwebserver3/SocketPolicy$FailHandshake : mockwebserver3/SocketPolicy { public static final field INSTANCE Lmockwebserver3/SocketPolicy$FailHandshake; } public final class mockwebserver3/SocketPolicy$HalfCloseAfterRequest : mockwebserver3/SocketPolicy { public static final field INSTANCE Lmockwebserver3/SocketPolicy$HalfCloseAfterRequest; } public final class mockwebserver3/SocketPolicy$KeepOpen : mockwebserver3/SocketPolicy {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 03 21:59:45 UTC 2023 - 12.7K bytes - Viewed (0) -
mockwebserver-junit4/api/mockwebserver3-junit4.api
public final class mockwebserver3/junit4/MockWebServerRule : org/junit/rules/ExternalResource { public static final field Companion Lmockwebserver3/junit4/MockWebServerRule$Companion; public fun <init> ()V public final fun getServer ()Lmockwebserver3/MockWebServer; } public final class mockwebserver3/junit4/MockWebServerRule$Companion {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Feb 26 19:17:33 UTC 2022 - 346 bytes - Viewed (0) -
mockwebserver-junit5/src/test/java/mockwebserver3/junit5/internal/ExtensionMultipleInstancesTest.kt
var defaultInstancePort: Int = -1 var instanceAPort: Int = -1 var instanceBPort: Int = -1 @BeforeEach fun setup( defaultInstance: MockWebServer, @MockWebServerInstance("A") instanceA: MockWebServer, @MockWebServerInstance("B") instanceB: MockWebServer, ) { defaultInstancePort = defaultInstance.port instanceAPort = instanceA.port instanceBPort = instanceB.port
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 2.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InsecureForHostTest.kt
import assertk.assertions.isEqualTo import assertk.assertions.isNotNull import assertk.assertions.isNull import javax.net.ssl.SSLException import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import okhttp3.testing.PlatformRule import okhttp3.tls.HandshakeCertificates import okhttp3.tls.HeldCertificate import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
mockwebserver-junit5/src/test/java/mockwebserver3/junit5/internal/ExtensionLifecycleTest.kt
* limitations under the License. */ package mockwebserver3.junit5.internal import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isNotSameInstanceAs import assertk.assertions.isSameInstanceAs import assertk.assertions.isTrue import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import okhttp3.OkHttpClientTestRule import okhttp3.Request
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 11 12:12:36 UTC 2024 - 3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt
import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.mockwebserver.MockResponse import okhttp3.mockwebserver.MockWebServer import okhttp3.tls.HandshakeCertificates import okhttp3.tls.internal.TlsUtil class DevServer { val handshakeCertificates = TlsUtil.localhost() val server = MockWebServer().apply { useHttps(handshakeCertificates.sslSocketFactory(), false) enqueue(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/SampleTest.kt
* limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.isEqualTo import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import okhttp3.HttpUrl.Companion.toHttpUrl import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension import org.junit.jupiter.params.ParameterizedTest
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.8K bytes - Viewed (0) -
mockwebserver-junit4/src/main/kotlin/mockwebserver3/junit4/MockWebServerRule.kt
* limitations under the License. */ package mockwebserver3.junit4 import java.io.IOException import java.util.logging.Level import java.util.logging.Logger import mockwebserver3.MockWebServer import okhttp3.ExperimentalOkHttpApi import org.junit.rules.ExternalResource /** * Runs MockWebServer for the duration of a single test method. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 1.8K bytes - Viewed (0) -
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt
ServersForTest() } as ServersForTest private class ServersForTest { private val servers = mutableMapOf<String, MockWebServer>() private var started = false fun server(name: String): MockWebServer { return servers.getOrPut(name) { MockWebServer().also { if (started) it.start() } } } fun startAll() { started = true
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 11 12:12:36 UTC 2024 - 4.1K bytes - Viewed (0)