Package org.mockserver.matchers
Class JsonPathMatcher
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.NotMatcher<MatchedType>
-
- org.mockserver.matchers.BodyMatcher<String>
-
- org.mockserver.matchers.JsonPathMatcher
-
public class JsonPathMatcher extends BodyMatcher<String>
See https://github.com/json-path/JsonPath- Author:
- jamesdbloom
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
fieldsExcludedFromEqualsAndHashCode()
boolean
matches(HttpRequest context, String matched)
-
Methods inherited from class org.mockserver.matchers.NotMatcher
not
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key, toString
-
-
-
-
Method Detail
-
matches
public boolean matches(HttpRequest context, String matched)
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-