Package com.jayway.jsonpath.matchers
Class IsJson<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
com.jayway.jsonpath.matchers.IsJson<T>
- All Implemented Interfaces:
org.hamcrest.Matcher<T>,org.hamcrest.SelfDescribing
public class IsJson<T>
extends org.hamcrest.TypeSafeMatcher<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidbuildMismatchDescription(Object json, org.hamcrest.Description mismatchDescription, Exception e) protected voiddescribeMismatchSafely(T json, org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(T json) private static ReadContextMethods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Field Details
-
jsonMatcher
-
-
Constructor Details
-
IsJson
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<T>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<T>
-
buildMismatchDescription
-
parse
- Throws:
IOException
-