Class WithJsonPath<T>
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<com.jayway.jsonpath.ReadContext>
-
- dev.aherscu.qa.testing.utils.assertions.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 void
describeMismatchSafely(com.jayway.jsonpath.ReadContext context, org.hamcrest.Description mismatchDescription)
void
describeTo(org.hamcrest.Description description)
protected boolean
matchesSafely(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:
matchesSafely
in 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:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<com.jayway.jsonpath.ReadContext>
-
-