It provides WireMock extensions for a dynamic mocking of JSON responses that are built on the extension support provided by WireMock.
The project is based on Java 8, uses Maven as build tool and provides extensions for WireMock 2.22.0+.
- JDK 8
- Maven 3.1.x+
- Docker 1.6+
Builds the project and makes the maven artifact and docker image available on a local machine.
- Clone the
wiremock-extensions
project from git - Perform a
mvn clean install
- Wait for the build and tests to finish.
Builds and deploys the project and publishes the maven artifact to mvn-repo and the docker image to ECR repository.
- Perform a
mvn clean deploy
- Wait for the build to finish
You can find further information in the documentation.
The response and callback body stubs act as templates where match pattern may be defined and which will be replaced by matching JsonPaths.
It implements WireMock's ResponseTransformer
and is an extension that is able to parse a JSON request body using JsonPath and interpolates found results into the JSON response that is returned by WireMock. It allows your WireMock response to be dynamically depending on the JSON request body. It was inspired by the wiremock-body-transformer but focus only on JSON contents to provide support for JsonPath patterns. Thus even complex JSON can be handled during response manipulation.
You can find further information in the documentation.
It implements WireMock's PostServeAction
and is an extension that is able to emit POST requests to arbitrary URLs. It allows your WireMock callback to be dynamically depending on the JSON request and response bodies of the related request.
You can find further information in the documentation.
It implements Wiremock's RequestMatcher
and is an extension that is able to match a RegEx pattern against the time of the request in ISO-8601 format as UTC.
You can find further information in the documentation.
This extension is not hosted on Maven central but on github. You can find further usage information documentation.