https://github.com/wiremock/wiremock-http4k
https://github.com/wiremock/wiremock-http4k
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wiremock/wiremock-http4k
- Owner: wiremock
- License: apache-2.0
- Created: 2023-09-12T11:56:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T23:56:59.000Z (over 2 years ago)
- Last Synced: 2024-12-31T01:44:45.419Z (over 1 year ago)
- Language: Kotlin
- Size: 138 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# wiremock-http4k
An example, and working code, for transferring WireMock based tests from a traditional approach
passing HTTP traffic over a network port to an in memory approach where no network traffic is
needed.
See [WireMockWireMyFirstEmailClientSpec](https://github.com/wiremock/wiremock-http4k/blob/main/src/email/src/test/kotlin/WireMockWireMyFirstEmailClientSpec.kt)
for the traditional approach, with WireMock as an HTTP server listening on a TCP port and a real
HTTP client making the requests to that server, and
[WireMockInMemoryMyFirstEmailClientSpec](https://github.com/wiremock/wiremock-http4k/blob/main/src/email/src/test/kotlin/WireMockInMemoryMyFirstEmailClientSpec.kt)
for the corresponding in memory only implementation.