# MockServer

Programmable service mocks, proxy recordings and fault injection for trusted test environments\.

ID: Q1683 · Revision: 1796

Type: software · License: Apache\-2\.0[^mockserver-license] · Status: active

Website: https://www.mock-server.com/



MockServer is an Apache\-2\.0 mock server and proxy for isolating service dependencies during development and testing\. It matches requests to configured expectations, can record upstream interactions and supports controlled delays or failures for testing client behavior\.[^mockserver-readme]

## Capabilities and substitutions

### Programmable mocks — supported

Request matchers choose authored, templated or callback responses\.[^mockserver-readme]

Use case: Programmatic service dependency testing · Platforms: Java 17\+, Docker, Kubernetes · Region: Version, runtime and trusted development/test environment requirements apply\.

### Recorded expectation persistence — limited

Recorded and authored expectations have separate persistence and initialization settings\.[^mockserver-persist]

Use case: Programmatic service dependency testing · Platforms: Java 17\+, Docker, Kubernetes · Region: Version, runtime and trusted development/test environment requirements apply\.

### Untrusted public deployment — unsupported

Project security policy restricts use to trusted development/test environments\.[^mockserver-security]

Use case: Programmatic service dependency testing · Platforms: Java 17\+, Docker, Kubernetes · Region: Version, runtime and trusted development/test environment requirements apply\.

### [Substitute for WireMock](/wiremock) — limited

Can replace programmable HTTP mocks and record/replay fixtures; expectations, persistence and matching behavior require migration\.[^mockserver-readme][^mockserver-record][^wiremock-standalone]

Use case: Programmatic service dependency testing · Platforms: Java 17\+, Docker, Kubernetes · Region: Version, runtime and trusted development/test environment requirements apply\.

## References

[^mockserver-license]: [MockServer license](<https://github.com/mock-server/mockserver-monorepo/blob/master/LICENSE.md>) — Apache License 2\.0 (vendor; retrieved 2026-10-07T11:09:34Z)

[^mockserver-readme]: [MockServer repository](<https://github.com/mock-server/mockserver-monorepo/blob/master/README.md>) — Request matching, fault injection, distribution and Java requirements (vendor; retrieved 2026-10-07T11:09:23Z)

[^mockserver-record]: [MockServer record and replay](<https://www.mock-server.com/proxy/record_and_replay.html>) — Plain retrieval versus recordings/promote: consolidation, parameterization and redaction defaults; checked 2026\-10\-14\. (vendor; retrieved 2026-10-14T04:23:47Z)

[^mockserver-persist]: [Persisting MockServer expectations](<https://www.mock-server.com/mock_server/persisting_expectations.html>) — Separate persistence controls for authored and recorded expectations (vendor; retrieved 2026-10-07T11:08:28Z)

[^mockserver-security]: [MockServer security policy](<https://github.com/mock-server/mockserver-monorepo/blob/master/SECURITY.md>) — Development/testing\-only posture and trusted environment assumptions (vendor; retrieved 2026-10-07T11:09:34Z)

[^wiremock-standalone]: [WireMock standalone service](<https://wiremock.org/docs/standalone/>) — Java/JSON configuration and JAR/container distribution (vendor; retrieved 2026-10-07T11:08:23Z)

[^wiremock-record]: [WireMock record and playback](<https://wiremock.org/docs/record-playback/>) — Recording and snapshotting stub mappings (vendor; retrieved 2026-10-07T11:08:23Z)

Source revision: https://substitutefor.net/entities/Q1683?revision=1796
