substitutefor

software · Q405

WireMock

HTTP API simulation with request mappings, recorded fixtures and stateful scenarios.

Suggest a correction

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.[1][2]

Defining mock services

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.[1][3]

Recording existing APIs

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.[4]

Stateful sequences

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.[5]

Operating and sharing mocks

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.[1]

Substitution scope

WireMock can substitute for Mockoon 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.[3][5][6]

Capabilities & limitations

Standalone API simulation

supported

JAR/container service configured through Java, JSON or HTTP administration.[3]

Local and CI HTTP dependency simulation · Java runtime, Docker · Version, plan and platform requirements apply

1 source · check evidence
https://wiremock.org/docs/standalone/

Java/JSON configuration and JAR/container distribution

vendor · checked 2026-10-07

Recorded fixtures

supported

Proxy recording can generate mappings served after recording stops.[4]

Local and CI HTTP dependency simulation · Java runtime, Docker · Version, plan and platform requirements apply

1 source · check evidence
https://wiremock.org/docs/record-playback/

Recording and snapshotting stub mappings

vendor · checked 2026-10-07

Stateful scenarios

supported

Mappings match and change explicit scenario states, with reset controls.[5]

Local and CI HTTP dependency simulation · Java runtime, Docker · Version, plan and platform requirements apply

1 source · check evidence
https://wiremock.org/docs/stateful-behaviour/

Scenario states and reset controls

vendor · checked 2026-10-07

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

Mockoon for Local and CI HTTP dependency simulation

limited

Can replace local HTTP mocks with WireMock mappings and scenarios; desktop workflows and native files are not interchangeable.[3][5][6]

Java runtime, Docker · Version, plan and platform requirements apply

References

  1. WireMock FAQ

    Apache-2.0, cloud separation and shared-instance management

    vendor · retrieved 2026-10-07
  2. WireMock Java documentation

    Distribution and API simulation scope

    vendor · retrieved 2026-10-07
  3. WireMock standalone service

    Java/JSON configuration and JAR/container distribution

    vendor · retrieved 2026-10-07
  4. WireMock record and playback

    Recording and snapshotting stub mappings

    vendor · retrieved 2026-10-07
  5. WireMock stateful behavior

    Scenario states and reset controls

    vendor · retrieved 2026-10-07
  6. Mockoon repository

    Desktop/CLI features and platform distributions

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
3912026-10-11 20:44:31/* wbeditentity-create-item:0| */ sf:61cf4570-da19-4acf-82ba-bafaaf5753fb:v1 | Add WireMock with cited product identity, workflow and portability boundaries; documentation research only. | attribution: /proposals/61cf4570-da19-4acf-82ba-bafaaf5753fb