Class RequestMatchers.ClosestMatchHint

java.lang.Object
org.mockserver.mock.RequestMatchers.ClosestMatchHint
Enclosing class:
RequestMatchers

public static final class RequestMatchers.ClosestMatchHint extends Object
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.