Class JsonPathMatchers

java.lang.Object
com.jayway.jsonpath.matchers.JsonPathMatchers

public class JsonPathMatchers extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.hamcrest.Matcher<? super Object>
    hasJsonPath(String jsonPath)
     
    static <T> org.hamcrest.Matcher<? super Object>
    hasJsonPath(String jsonPath, org.hamcrest.Matcher<T> resultMatcher)
     
    static org.hamcrest.Matcher<? super Object>
     
    static org.hamcrest.Matcher<Object>
     
    static org.hamcrest.Matcher<Object>
    isJson(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> matcher)
     
    static org.hamcrest.Matcher<File>
    isJsonFile(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> matcher)
     
    static org.hamcrest.Matcher<String>
    isJsonString(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> matcher)
     
    static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext>
    withJsonPath(com.jayway.jsonpath.JsonPath jsonPath)
     
    static <T> org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext>
    withJsonPath(com.jayway.jsonpath.JsonPath jsonPath, org.hamcrest.Matcher<T> resultMatcher)
     
    static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext>
    withJsonPath(String jsonPath, com.jayway.jsonpath.Predicate... filters)
     
    static <T> org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext>
    withJsonPath(String jsonPath, org.hamcrest.Matcher<T> resultMatcher)
     
    static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext>
    withoutJsonPath(com.jayway.jsonpath.JsonPath jsonPath)
     
    static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext>
    withoutJsonPath(String jsonPath, com.jayway.jsonpath.Predicate... filters)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • hasJsonPath

      public static org.hamcrest.Matcher<? super Object> hasJsonPath(String jsonPath)
    • hasJsonPath

      public static <T> org.hamcrest.Matcher<? super Object> hasJsonPath(String jsonPath, org.hamcrest.Matcher<T> resultMatcher)
    • hasNoJsonPath

      public static org.hamcrest.Matcher<? super Object> hasNoJsonPath(String jsonPath)
    • isJson

      public static org.hamcrest.Matcher<Object> isJson()
    • isJson

      public static org.hamcrest.Matcher<Object> isJson(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> matcher)
    • isJsonString

      public static org.hamcrest.Matcher<String> isJsonString(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> matcher)
    • isJsonFile

      public static org.hamcrest.Matcher<File> isJsonFile(org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> matcher)
    • withJsonPath

      public static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> withJsonPath(String jsonPath, com.jayway.jsonpath.Predicate... filters)
    • withJsonPath

      public static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> withJsonPath(com.jayway.jsonpath.JsonPath jsonPath)
    • withoutJsonPath

      public static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> withoutJsonPath(String jsonPath, com.jayway.jsonpath.Predicate... filters)
    • withoutJsonPath

      public static org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> withoutJsonPath(com.jayway.jsonpath.JsonPath jsonPath)
    • withJsonPath

      public static <T> org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> withJsonPath(String jsonPath, org.hamcrest.Matcher<T> resultMatcher)
    • withJsonPath

      public static <T> org.hamcrest.Matcher<? super com.jayway.jsonpath.ReadContext> withJsonPath(com.jayway.jsonpath.JsonPath jsonPath, org.hamcrest.Matcher<T> resultMatcher)