Class 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)  
    • 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 class org.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 class org.hamcrest.TypeSafeMatcher<com.jayway.jsonpath.ReadContext>