Class IsJson<T>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

    public class IsJson<T>
    extends org.hamcrest.TypeSafeMatcher<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      IsJson​(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> jsonMatcher)  
    • Constructor Detail

      • IsJson

        public IsJson​(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> jsonMatcher)
    • Method Detail

      • matchesSafely

        protected boolean matchesSafely​(T json)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<T>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • describeMismatchSafely

        protected void describeMismatchSafely​(T json,
                                              org.hamcrest.Description mismatchDescription)
        Overrides:
        describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<T>