Package org.mockserver.matchers
Class MismatchRemediation
- java.lang.Object
-
- org.mockserver.matchers.MismatchRemediation
-
public class MismatchRemediation extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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 Detail
-
hint
public static String hint(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.
-
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.
-
-