Package org.mockserver.matchers
Class MismatchRemediation
java.lang.Object
org.mockserver.matchers.MismatchRemediation
Produces short, actionable remediation hints from match-difference fields.
Each hint is a deterministic one-liner that tells the caller exactly what to change.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<MatchDifference.Field,String> allHints(Map<MatchDifference.Field, List<String>> differences) Produces a map of field to hint string for all fields that have differences.static Stringhint(MatchDifference.Field field, List<String> differences) Returns a remediation hint for the given field and its difference messages, or an empty string when no specific hint can be determined.
-
Method Details
-
hint
Returns a remediation hint for the given field and its difference messages, or an empty string when no specific hint can be determined. -
allHints
public static Map<MatchDifference.Field,String> allHints(Map<MatchDifference.Field, List<String>> differences) Produces a map of field to hint string for all fields that have differences.
-