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
Constructors Constructor Description WithJsonPath(com.jayway.jsonpath.JsonPath jsonPath, org.hamcrest.Matcher<T> resultMatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddescribeMismatchSafely(com.jayway.jsonpath.ReadContext context, org.hamcrest.Description mismatchDescription)voiddescribeTo(org.hamcrest.Description description)protected booleanmatchesSafely(com.jayway.jsonpath.ReadContext context)
-
-
-
Constructor Detail
-
WithJsonPath
public WithJsonPath(com.jayway.jsonpath.JsonPath jsonPath, org.hamcrest.Matcher<T> resultMatcher)
-
-
Method Detail
-
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>
-
-