Package org.mockserver.mock
Class RequestMatchers.ClosestMatchHint
java.lang.Object
org.mockserver.mock.RequestMatchers.ClosestMatchHint
- Enclosing class:
- RequestMatchers
Compact closest-match diagnostic used by the unmatched-404 hint header
(
closestMatchHintEnabled). Holds the id of the closest non-matching
expectation and the field differences that kept it from matching, so the
caller can render a short, safe one-line hint (expectation id + first
differing field + reason) without serialising the whole expectation.-
Constructor Summary
ConstructorsConstructorDescriptionClosestMatchHint(String expectationId, Map<MatchDifference.Field, List<String>> differences) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ClosestMatchHint
-
-
Method Details
-
getExpectationId
-
getDifferences
-