Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

WireMock is an HTTP mock server. It has functions such as HTTP response stubs, request validation, proxy/interception, recording, and playback. When the development progress of developers is inconsistent, the interface constructed by the WireMock can be used to simulate different requests and responses to prevent the development progress of a module from being blocked. WireMock provides the following features:

  • HTTP response stubs, which can be matched on the URL, header, and body content patterns
  • Request validation
  • Run as a stand-alone process or WAR application in unit tests
  • Configurable using fluent Java APIs, JSON files, and JSON over HTTP
  • Recording/Playback stub
  • Fault injection
  • Condition proxy for each request
  • Browser proxy for request check and replacement
  • Stateful behavior simulation
  • Configurable response delay