Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 134 for mock (0.14 sec)

  1. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    King, the Queen, and Alice, were in custody and under sentence of
    execution.
    
      Then the Queen left off, quite out of breath, and said to
    Alice, `Have you seen the Mock Turtle yet?'
    
      `No,' said Alice.  `I don't even know what a Mock Turtle is.'
    
      `It's the thing Mock Turtle Soup is made from,' said the Queen.
    
      `I never saw one, or heard of one,' said Alice.
    
      `Come on, then,' said the Queen, `and he shall tell you his
    Plain Text
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 145.2K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt

     * limitations under the License.
     */
    package mockwebserver3
    
    import mockwebserver3.SocketPolicy.KeepOpen
    import okhttp3.ExperimentalOkHttpApi
    
    /** Handler for mock server requests. */
    @ExperimentalOkHttpApi
    abstract class Dispatcher {
      /**
       * Returns a response to satisfy `request`. This method may block (for instance, to wait on
       * a CountdownLatch).
       */
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. mockwebserver/README.md

      server.shutdown();
    }
    ```
    
    Your unit tests might move the `server` into a field so you can shut it down
    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    You can set a custom body with a string, input stream or byte array. Also
    add headers with a fluent builder API.
    
    ```java
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  4. docs/works_with_okhttp.md

     * [OkHttp Idling Resource](https://github.com/JakeWharton/okhttp-idling-resource): An Espresso IdlingResource for OkHttp.
     * [okhttp-client-mock](https://github.com/gmazzo/okhttp-client-mock): A simple OKHttp client mock, using a programmable request interceptor.
     * [OkHttp Profiler](https://plugins.jetbrains.com/plugin/11249-okhttp-profiler): An IntelliJ plugin for monitoring OkHttp calls.
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Wed Jun 08 18:15:23 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/testing-dependencies.md

    This provider might be charging you per request, and calling it might take some extra time than if you had a fixed mock user for tests.
    
    You probably want to test the external provider once, but not necessarily call it for every test that runs.
    
    In this case, you can override the dependency that calls that provider, and use a custom dependency that returns a mock user, only for your tests.
    
    ### Use the `app.dependency_overrides` attribute
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  6. gradle/libs.versions.toml

    mockserver = { module = "org.testcontainers:mockserver", version.ref = "testcontainers" }
    mockserver-client = { module = "org.mock-server:mockserver-client-java-no-dependencies", version.ref = "mockserverClient" }
    nativeImageSvm = { module = "org.graalvm.nativeimage:svm", version.ref = "graalvm" }
    openjsse = "org.openjsse:openjsse:1.1.14"
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Apr 08 02:47:59 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    King, the Queen, and Alice, were in custody and under sentence of
    execution.
    
      Then the Queen left off, quite out of breath, and said to
    Alice, `Have you seen the Mock Turtle yet?'
    
      `No,' said Alice.  `I don't even know what a Mock Turtle is.'
    
      `It's the thing Mock Turtle Soup is made from,' said the Queen.
    
      `I never saw one, or heard of one,' said Alice.
    
      `Come on, then,' said the Queen, `and he shall tell you his
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/platform/Jdk9PlatformTest.kt

        platform.assumeJdk9()
        val applicationProtocolUnsupported =
          object : DelegatingSSLSocket(null) {
            override fun getApplicationProtocol(): String {
              throw UnsupportedOperationException("Mock exception")
            }
          }
        assertThat(Jdk9Platform().getSelectedProtocol(applicationProtocolUnsupported)).isNull()
      }
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/tests/org/jetbrains/kotlin/analysis/api/fe10/test/configurator/AnalysisApiFe10TestServiceRegistrar.kt

     * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
     */
    
    package org.jetbrains.kotlin.analysis.api.fe10.test.configurator
    
    import com.intellij.mock.MockProject
    import org.jetbrains.kotlin.analysis.api.KtAnalysisApiInternals
    import org.jetbrains.kotlin.analysis.api.KtAnalysisNonPublicApi
    import org.jetbrains.kotlin.analysis.api.descriptors.CliFe10AnalysisFacade
    Plain Text
    - Registered: Fri Apr 19 08:18:09 GMT 2024
    - Last Modified: Wed Apr 10 16:23:23 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

    import org.testcontainers.junit.jupiter.Testcontainers
    
    @Testcontainers
    @Isolated
    class BasicLoomTest {
      @JvmField
      @RegisterExtension
      val platform = PlatformRule()
    
      // Use mock server so we are strictly testing OkHttp client only in this test.
      // We should test MockWebServer later.
      @Container
      val mockServer: MockServerContainer = MockServerContainer(MOCKSERVER_IMAGE)
    
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Sat Apr 06 11:15:46 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top