Software Testing / Learning brief

Tom stubs the tasks service with WireMock

What this means in plain language

Tom starts WireMock, writes a mapping for the tasks list and checks the answer with curl.

Understand the full idea, step by step

Analogy: a vending machine with a button code. You press a code and a fixed snack drops out, every time. The machine never calls a real shop. You stock it by loading a tray.

is the request, the snack is the response, and the tray is the mapping folder.

PLAIN WORDS · 1 in this section
vending
selling goods from a machine

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Hands-on steps for this tool. The people and the app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.

Sources for this brief — 3 sources
  1. Market practice

    Stubbing (WireMock documentation) ↗ — WireMock · WireMock stubbing pages: a mapping has a request part with a method and a web address and a response part with a status and a body, and it can be a file in the mappings folder or be sent to the admin address (search excerpt, page not opened)

    The WireMock stubbing pages say a mapping has a request part and a response part. The request part holds a method and a web address. The response part holds a status and a body. A mapping can be a file in the mappings folder, or it can be sent to the admin address. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. Supplement6November2026: actual current and archived2.x stubbing pages opened; priority then most-recent matching stub; reset paths also documented in2.x. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

    8 November 2026: actual live WireMock Java Basic Stubbing and complete Stub Priority section/examples opened. Request mappings select configured responses; no installed-version or every-feature claim.

    WireMock topic review, 8 November 2026: Basic stubbing, stub priority, unmapped replies, reset and reset-to-default: current official page opened 8 November 2026. Local examples separately checked with WireMock Java 3.13.1.

    Version-specific correction: the general Reset paragraph says all mappings are removed, but WireMock Java 3.13.1 resetAll reloads defaults. See v945-wiremock-3131-reset-source and the local runtime tests. Do not infer an empty mapping list when files are present.

  2. Market practice

    Running in Docker (WireMock documentation) ↗ — WireMock · WireMock Docker pages: a docker run command publishes port 8080, the admin address shows the loaded mappings and starts empty, and a mounted folder can supply mapping files (search excerpt, page not opened)

    The WireMock Docker pages show a docker run command that publishes port 8080. They say the admin address shows the loaded mappings, which start empty. A mounted folder can supply mapping files. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  3. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREWireMock part 1: run it and write a first stubStart WireMock on your own machine, save one mapping file with a request and a response, and call it with curl to see the answer you wrote.Opens at L0 Explain simply · about 16 min

Related briefs