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

    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)
     

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WithJsonPath

      public WithJsonPath(com.jayway.jsonpath.JsonPath jsonPath, org.hamcrest.Matcher<T> resultMatcher)
  • Method Details

    • 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>