Package org.mockserver.matchers
Class AllOfBodyMatcher
java.lang.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
-
Method Summary
Modifier and TypeMethodDescriptionString[]booleanisBlank()booleanmatches(MatchDifference context, Object matched) Not called on the composite directly —BodyMatchingperforms the per-component dispatch so it can supply each component the body source and decoder it needs.Methods inherited from class org.mockserver.matchers.NotMatcher
notMatcherMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, toString
-
Method Details
-
matches
Not called on the composite directly —BodyMatchingperforms the per-component dispatch so it can supply each component the body source and decoder it needs. Present only to satisfy theMatchercontract. -
isBlank
public boolean isBlank() -
fieldsExcludedFromEqualsAndHashCode
- Overrides:
fieldsExcludedFromEqualsAndHashCodein classObjectWithReflectiveEqualsHashCodeToString
-