This project packages WireMock as a .war file, so it can be deployed to a container as a standalone service.
-
Deploy the
wiremock-service
.war file to your container. It contains ajboss-web.xml
that sets the context root to "/" so if deployed to JBoss or WildFly it will appear at the server root. Deployment to other containers will require configuration to achieve the same result. -
Add a WireMock rule to your integration tests and set up your stub endpoints just like you would if starting a local WireMock server directly in your tests.
wiremock-service
- the mocking servicewiremock-service-test
- an example of how to use the mocking service as part of an integration test using an embedded WildFly instancewiremock-test-utils
- utility module for tests