Class JsonAssert
java.lang.Object
com.jayway.jsonassert.JsonAssert
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionMatchercollectionWithSize(org.hamcrest.Matcher<? super Integer> sizeMatcher) Deprecated.private static StringconvertReaderToString(Reader reader) Deprecated.static org.hamcrest.Matcher<Collection<Object>> Deprecated.mapContainingKey(org.hamcrest.Matcher<String> keyMatcher) Deprecated.static <V> org.hamcrest.Matcher<? super Map<?, V>> mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher) Deprecated.static JsonAsserterwith(InputStream is) Deprecated.Creates a JSONAsserterstatic JsonAsserterDeprecated.Creates a JSONAsserterstatic JsonAsserterDeprecated.Creates a JSONAsserter
-
Constructor Details
-
JsonAssert
public JsonAssert()Deprecated.
-
-
Method Details
-
with
Deprecated.Creates a JSONAsserter- Parameters:
json- the JSON document to create a JSONAsserter for- Returns:
- a JSON asserter initialized with the provided document
- Throws:
ParseException- when the given JSON could not be parsed
-
with
Deprecated.Creates a JSONAsserter- Parameters:
reader- the reader of the json document- Returns:
- a JSON asserter initialized with the provided document
- Throws:
ParseException- when the given JSON could not be parsedIOException
-
with
Deprecated.Creates a JSONAsserter- Parameters:
is- the input stream- Returns:
- a JSON asserter initialized with the provided document
- Throws:
ParseException- when the given JSON could not be parsedIOException
-
collectionWithSize
public static CollectionMatcher collectionWithSize(org.hamcrest.Matcher<? super Integer> sizeMatcher) Deprecated. -
mapContainingKey
-
mapContainingValue
public static <V> org.hamcrest.Matcher<? super Map<?,V>> mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher) Deprecated. -
emptyCollection
Deprecated. -
convertReaderToString
Deprecated.- Throws:
IOException
-