Package com.jayway.jsonpath.matchers
Class WithJsonPath<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<com.jayway.jsonpath.ReadContext>
com.jayway.jsonpath.matchers.WithJsonPath<T>
- All Implemented Interfaces:
org.hamcrest.Matcher<com.jayway.jsonpath.ReadContext>,org.hamcrest.SelfDescribing
public class WithJsonPath<T>
extends org.hamcrest.TypeSafeMatcher<com.jayway.jsonpath.ReadContext>
-
Constructor Summary
ConstructorsConstructorDescriptionWithJsonPath(com.jayway.jsonpath.JsonPath jsonPath, org.hamcrest.Matcher<T> resultMatcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(com.jayway.jsonpath.ReadContext context, org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(com.jayway.jsonpath.ReadContext context) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
WithJsonPath
-
-
Method Details
-
matchesSafely
protected boolean matchesSafely(com.jayway.jsonpath.ReadContext context) - Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<com.jayway.jsonpath.ReadContext>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
protected void describeMismatchSafely(com.jayway.jsonpath.ReadContext context, org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<com.jayway.jsonpath.ReadContext>
-