Class AllOfBodyMatcher

All Implemented Interfaces:
Matcher<Object>

public class AllOfBodyMatcher extends BodyMatcher<Object>
A composite BodyMatcher that matches only when every component body matcher matches the request body.

The composite is a thin holder for its component matchers. The actual per-component dispatch lives in BodyMatching (which is where the request/response body source, the JSON-schema body decoder and the logger are in scope), so each component is matched exactly as it would be on its own — the composition changes no individual matcher's semantics.

Author:
jamesdbloom