Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ExternalResource (0.09 sec)

  1. mockwebserver-junit4/src/main/kotlin/mockwebserver3/junit4/MockWebServerRule.kt

    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.
     *
     * In Java JUnit 4 tests (ie. tests annotated `@org.junit.Test`), use this by defining a field with
     * the `@Rule` annotation:
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. 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)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

    import javax.net.ServerSocketFactory
    import javax.net.ssl.SSLSocketFactory
    import okhttp3.ExperimentalOkHttpApi
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import org.junit.rules.ExternalResource
    
    class MockWebServer : ExternalResource(), Closeable {
      @ExperimentalOkHttpApi
      val delegate = mockwebserver3.MockWebServer()
    
      val requestCount: Int by delegate::requestCount
    
      var bodyLimit: Long by delegate::bodyLimit
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/api/mockwebserver.api

    }
    
    public final class okhttp3/mockwebserver/MockResponse$Companion {
    }
    
    public final class okhttp3/mockwebserver/MockWebServer : org/junit/rules/ExternalResource, java/io/Closeable {
    	public static final field Companion Lokhttp3/mockwebserver/MockWebServer$Companion;
    	public final fun -deprecated_bodyLimit (J)V
    	public final fun -deprecated_port ()I
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
Back to top