Namespace ProtoTest.WireMock

Classes

ProtoExecutionContextExtensions

Reaches the suite's fake HTTP services from the running test.

ProtoHostBuilderExtensions

Registers fake HTTP services the suite stubs per test.

ProtoWireMockBuilder

Describes one fake HTTP service on the AddWireMock chain. A fake starts lazily on the first WireMock(name) call of a test: per-test fakes start a fresh server per test on a dynamic port, while PerRun() shares one server - stubs and request log included - across the run and clears them when the run releases it.

ProtoWireMockClient

One fake HTTP service for the running test: stub routes that read like the scenario, the base URL to point the system under test at, and the requests the fake served. The fake starts on the first call that needs it; a per-test fake stops with the test, a per-run fake keeps serving with its stubs and log until the run releases it.

ProtoWireMockProtocol

The WireMock protocol's identity: the key options and clients are registered under, the trace source its operations declare, and the observation kinds its fakes record. Matched requests reuse the REST response kind and payload, so the trace and any REST consumer read them as HTTP responses; stub registrations and unmatched requests use the package's own kinds.

ProtoWireMockRequest

One request the fake served: its method and path, whether a stub matched it, and the status served.

ProtoWireMockStub

One stub on a fake: the method and path template it serves and the response it serves with. The first response call registers the WireMock mapping; a later one replaces it, so re-stubbing never stacks two mappings for one stub. Paths follow the WireMock path syntax, where * matches a segment.

WireMockAssertionException

Thrown when a WireMock fake assertion fails, naming the fake and the requests behind it. Derives from ProtoAssertionException, so a protocol assertion failure is catchable as the shared type.

WireMockCoverageCollector

Aggregates one fake's observations as stub coverage: every registered stub is an item, uncovered until a matched request for it arrives. A stub the run registered but no test's system under test called stays visible as a gap, like an unhit route in REST coverage.

WireMockStubData

The observation payload a stub registration records: the method and path template it serves.