Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Framework (0.47 sec)

  1. mockwebserver/README.md

    server to create representative test cases. Or test that your code survives in
    awkward-to-reproduce situations like 500 errors or slow-loading responses.
    
    
    ### Example
    
    Use MockWebServer the same way that you use mocking frameworks like
    [Mockito](https://github.com/mockito/mockito):
    
    1. Script the mocks.
    2. Run application code.
    3. Verify that the expected requests were made.
    
    Here's a complete example:
    
    ```java
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

            // Temporary project to satisfy bnd API.
            project = Project(workspace, workspaceDir.toFile())
          }
    
        return Bndrun(bndEditModel).apply {
          setRunfw(RESOLVE_OSGI_FRAMEWORK)
          runee = RESOLVE_JAVA_VERSION
          setRunRequires(runRequireString)
        }
      }
    
      private fun RepositoryPlugin.deployDirectory(directory: Path) {
        for (path in fileSystem.list(directory)) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.authenticator
    
    import java.net.Authenticator
    import java.net.InetAddress
    import junit.framework.TestCase.assertNull
    import okhttp3.FakeDns
    import okhttp3.Protocol.HTTP_2
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.TestValueFactory
    import okhttp3.internal.RecordingAuthenticator
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. docs/changelogs/upgrading_to_okhttp_4.md

    #### OkHttpClient final methods
    
    `OkHttpClient` has 26 accessors like `interceptors()` and `writeTimeoutMillis()` that were non-final
    in OkHttp 3.x and are final in 4.x. These were made non-final for use with mocking frameworks like
    [Mockito][mockito]. We believe subtyping `OkHttpClient` is the wrong way to test with OkHttp. If
    you must, mock `Call.Factory` which is the interface that `OkHttpClient` implements.
    
    #### Internal API changes
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  5. CHANGELOG.md

     *  New: `QueueDispatcher.clear()` may be used to reset a MockWebServer instance.
     *  New: `FileDescriptor.toRequestBody()` may be particularly useful for users of Android's Storage
        Access Framework.
     *  Upgrade: [Kotlin 1.5.31][kotlin_1_5_31].
     *  Upgrade: [Okio 3.0.0][okio_3_0_0].
    
    
    ## Version 5.0.0-alpha.2
    
    _2021-01-30_
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

        the entire connection to fail.
     *  Fix: Don’t crash on unexpected charsets in the logging interceptor.
     *  Fix: `OkHttpClient` is now non-final for the benefit of mocking frameworks.
        Mocking sophisticated classes like `OkHttpClient` is fragile and you
        shouldn’t do it. But if that’s how you want to live your life we won’t stand
        in your way!
    
    
    ## Version 3.0.1
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_2x.md

     *  New: Fold `MockWebServerRule` into `MockWebServer`. This makes it easier to
        write JUnit tests with `MockWebServer`. The `MockWebServer` library now
        depends on JUnit, though it continues to work with all testing frameworks.
     *  Fix: `FormEncodingBuilder` is now consistent with browsers in which
        characters it escapes. Previously we weren’t percent-encoding commas,
        parens, and other characters.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
Back to top