Software Testing / Learning brief
Tom stubs the tasks service with WireMock
In simple terms / 01
What this means in plain language
Tom starts WireMock, writes a mapping for the tasks list and checks the answer with curl.
Complete lesson / 02
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 / 03
Evidence & review
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
- 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)
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.
- 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)
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
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.