{"schemaVersion":"1.0","record":{"label":"WireMock","description":"HTTP API simulation with request mappings, recorded fixtures and stateful scenarios.","aliases":["WireMock Java"],"kind":"software","website":"https://wiremock.org/","overview":"WireMock is an Apache-2.0 API simulation tool for replacing HTTP dependencies during development and testing. Its Java implementation can run with tests or as a standalone service, using authored or recorded mappings to return controlled responses.","license":"Apache-2.0","lifecycle":"active","example":false,"features":[{"name":"Standalone API simulation","status":"supported","detail":"JAR/container service configured through Java, JSON or HTTP administration.","useCase":"Local and CI HTTP dependency simulation","platforms":["Java runtime","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://wiremock.org/docs/standalone/","locator":"Java/JSON configuration and JAR/container distribution","retrievedAt":"2026-10-07T11:08:23Z","kind":"vendor"}]},{"name":"Recorded fixtures","status":"supported","detail":"Proxy recording can generate mappings served after recording stops.","useCase":"Local and CI HTTP dependency simulation","platforms":["Java runtime","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://wiremock.org/docs/record-playback/","locator":"Recording and snapshotting stub mappings","retrievedAt":"2026-10-07T11:08:23Z","kind":"vendor"}]},{"name":"Stateful scenarios","status":"supported","detail":"Mappings match and change explicit scenario states, with reset controls.","useCase":"Local and CI HTTP dependency simulation","platforms":["Java runtime","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://wiremock.org/docs/stateful-behaviour/","locator":"Scenario states and reset controls","retrievedAt":"2026-10-07T11:08:56Z","kind":"vendor"}]}],"alternatives":[],"slug":"wiremock","draftAlternatives":[{"targetSlug":"mockoon","status":"limited","detail":"Can replace local HTTP mocks with WireMock mappings and scenarios; desktop workflows and native files are not interchangeable.","useCase":"Local and CI HTTP dependency simulation","platforms":["Java runtime","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://wiremock.org/docs/standalone/","locator":"Java/JSON configuration and JAR/container distribution","retrievedAt":"2026-10-07T11:08:23Z","kind":"vendor"},{"url":"https://wiremock.org/docs/stateful-behaviour/","locator":"Scenario states and reset controls","retrievedAt":"2026-10-07T11:08:56Z","kind":"vendor"},{"url":"https://github.com/mockoon/mockoon/blob/main/README.md","locator":"Desktop/CLI features and platform distributions","retrievedAt":"2026-10-07T11:08:42Z","kind":"vendor"}]}],"evidence":[{"url":"https://wiremock.org/docs","locator":"Distribution and API simulation scope","retrievedAt":"2026-10-07T11:08:23Z","kind":"vendor"},{"url":"https://wiremock.org/docs/faq/","locator":"Apache-2.0, cloud separation and shared-instance management","retrievedAt":"2026-10-07T11:09:13Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://wiremock.org/docs/faq/","locator":"Apache-2.0, cloud separation and shared-instance management","retrievedAt":"2026-10-07T11:09:13Z","id":"wiremock-faq","title":"WireMock FAQ","kind":"vendor"},{"url":"https://wiremock.org/docs","locator":"Distribution and API simulation scope","retrievedAt":"2026-10-07T11:08:23Z","id":"wiremock-docs","title":"WireMock Java documentation","kind":"vendor"},{"url":"https://wiremock.org/docs/standalone/","locator":"Java/JSON configuration and JAR/container distribution","retrievedAt":"2026-10-07T11:08:23Z","id":"wiremock-standalone","title":"WireMock standalone service","kind":"vendor"},{"url":"https://wiremock.org/docs/record-playback/","locator":"Recording and snapshotting stub mappings","retrievedAt":"2026-10-07T11:08:23Z","id":"wiremock-record","title":"WireMock record and playback","kind":"vendor"},{"url":"https://wiremock.org/docs/stateful-behaviour/","locator":"Scenario states and reset controls","retrievedAt":"2026-10-07T11:08:56Z","id":"wiremock-state","title":"WireMock stateful behavior","kind":"vendor"},{"url":"https://github.com/mockoon/mockoon/blob/main/README.md","locator":"Desktop/CLI features and platform distributions","retrievedAt":"2026-10-07T11:08:42Z","id":"mockoon-readme","title":"Mockoon repository","kind":"vendor"}],"overviewCitations":["wiremock-docs","wiremock-faq"],"licenseCitations":["wiremock-faq"],"sections":[{"id":"configuration","heading":"Defining mock services","paragraphs":[{"id":"configuration-detail","content":[{"text":"A standalone WireMock server can be configured through Java, JSON files or an HTTP administration API, with JAR and container distributions available. A mock describes which incoming requests to match and what responses to return. This allows a client application to exercise expected and exceptional interactions without depending on a live third-party service for every test run."}],"citations":["wiremock-standalone","wiremock-faq"]}]},{"id":"recording","heading":"Recording existing APIs","paragraphs":[{"id":"recording-detail","content":[{"text":"WireMock can proxy traffic to an existing API and derive stub mappings from the requests and responses it observes. Recording and snapshotting offer different ways to capture those interactions. In the documented recorder workflow, mappings are created when recording stops and then begin serving immediately. A recording is therefore a reusable test fixture, not evidence that every possible upstream behavior has been reproduced."}],"citations":["wiremock-record"]}]},{"id":"state","heading":"Stateful sequences","paragraphs":[{"id":"state-detail","content":[{"text":"Scenarios add a state-machine model to mappings. A request can match only in a specified state and move the scenario into another state, allowing a later request to receive a different response. The administration interfaces can inspect, reset or explicitly change scenario state. Resetting is significant for repeatable tests because a previous interaction can otherwise affect which stub matches next."}],"citations":["wiremock-state"]}]},{"id":"operations","heading":"Operating and sharing mocks","paragraphs":[{"id":"operations-detail","content":[{"text":"The open-source implementation is separate from the commercial WireMock Cloud service. For shared standalone installations, the project's FAQ recommends configuration-as-code and limiting modification APIs to reduce interference between teams. It also warns that a shared instance can be overloaded by combined workloads. Self-hosting consequently gives control over mappings and execution, while leaving capacity and shared-test isolation with the operator."}],"citations":["wiremock-faq"]}]},{"id":"fit","heading":"Substitution scope","paragraphs":[{"id":"fit-detail","content":[{"text":"WireMock can substitute for "},{"text":"Mockoon","targetSlug":"mockoon"},{"text":" for local HTTP API simulation when Java integration or code-managed mappings fit the test suite. Mockoon supplies a desktop-first authoring experience and its own CLI and data format. The overlap is controlled API behavior, not established file compatibility: request rules, templates and state transitions must be recreated or checked when moving between the tools. Neither successful replay nor a matching payload alone proves an application's compatibility with a changing real service."}],"citations":["wiremock-standalone","wiremock-state","mockoon-readme"]}]}]},"id":"Q405","revision":391,"updatedAt":"2026-10-11T20:44:31Z","sourceUrl":"https://substitutefor.net/entities/Q405?revision=391"}}