Skip to content
testcritic

WireMock

The standard HTTP mock server for JVM and beyond: record, replay, stub, simulate faults.

Test Data & MocksFree tierOpen sourceSelf-hostable
Visit WireMock

What it is

WireMock stands in for an HTTP dependency, matching requests against stub definitions and returning configured responses, with support for recording real traffic and replaying it, stateful scenarios, response templating and deliberate fault and latency injection. It runs as a library, a standalone process, a Docker container or a hosted cloud service.

Best for

Teams whose integration tests depend on third-party HTTP services.

Where it is strong

  • Fault and latency injection lets you test the error paths that never occur on demand in a real sandbox.
  • Record-and-replay produces a realistic mock from live traffic quickly.
  • Runs anywhere: embedded, standalone, container or cloud.

Where it falls short

  • Recorded stubs drift from the real service unless you re-record or verify contracts.
  • Complex stateful scenarios get verbose in JSON.
  • HTTP only — not for message queues or gRPC without extensions.

Pricing

Free tier available

Free tier

Free tier: Open-source WireMock is complete and free.

What drives the bill: Open source is free; WireMock Cloud is a paid hosted service for shared team mocks.

Check current pricing on WireMock Inc.’s site

Figures are indicative and were last reviewed August 2026. Vendors change pricing often; confirm before you commit.

Works with

JUnitTestcontainersDockerKubernetesSpring BootGitHub Actions

What people who use WireMock say

No reviews of WireMock yet. If you have used it in anger, yours would be the first.

Alternatives to WireMock

If WireMock is not the right fit, these solve the same problem differently.

Explore all alternatives