Package com.jayway.jsonassert
Class JsonAssert
- java.lang.Object
-
- com.jayway.jsonassert.JsonAssert
-
@Deprecated public class JsonAssert extends java.lang.ObjectDeprecated.
-
-
Constructor Summary
Constructors Constructor Description JsonAssert()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CollectionMatchercollectionWithSize(org.hamcrest.Matcher<? super java.lang.Integer> sizeMatcher)Deprecated.private static java.lang.StringconvertReaderToString(java.io.Reader reader)Deprecated.static org.hamcrest.Matcher<java.util.Collection<java.lang.Object>>emptyCollection()Deprecated.static org.hamcrest.Matcher<java.util.Map<java.lang.String,?>>mapContainingKey(org.hamcrest.Matcher<java.lang.String> keyMatcher)Deprecated.static <V> org.hamcrest.Matcher<? super java.util.Map<?,V>>mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)Deprecated.static JsonAsserterwith(java.io.InputStream is)Deprecated.Creates a JSONAsserterstatic JsonAsserterwith(java.io.Reader reader)Deprecated.Creates a JSONAsserterstatic JsonAsserterwith(java.lang.String json)Deprecated.Creates a JSONAsserter
-
-
-
Method Detail
-
with
public static JsonAsserter with(java.lang.String json)
Deprecated.Creates a JSONAsserter- Parameters:
json- the JSON document to create a JSONAsserter for- Returns:
- a JSON asserter initialized with the provided document
- Throws:
java.text.ParseException- when the given JSON could not be parsed
-
with
public static JsonAsserter with(java.io.Reader reader) throws java.io.IOException
Deprecated.Creates a JSONAsserter- Parameters:
reader- the reader of the json document- Returns:
- a JSON asserter initialized with the provided document
- Throws:
java.text.ParseException- when the given JSON could not be parsedjava.io.IOException
-
with
public static JsonAsserter with(java.io.InputStream is) throws java.io.IOException
Deprecated.Creates a JSONAsserter- Parameters:
is- the input stream- Returns:
- a JSON asserter initialized with the provided document
- Throws:
java.text.ParseException- when the given JSON could not be parsedjava.io.IOException
-
collectionWithSize
public static CollectionMatcher collectionWithSize(org.hamcrest.Matcher<? super java.lang.Integer> sizeMatcher)
Deprecated.
-
mapContainingKey
public static org.hamcrest.Matcher<java.util.Map<java.lang.String,?>> mapContainingKey(org.hamcrest.Matcher<java.lang.String> keyMatcher)
Deprecated.
-
mapContainingValue
public static <V> org.hamcrest.Matcher<? super java.util.Map<?,V>> mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)
Deprecated.
-
emptyCollection
public static org.hamcrest.Matcher<java.util.Collection<java.lang.Object>> emptyCollection()
Deprecated.
-
convertReaderToString
private static java.lang.String convertReaderToString(java.io.Reader reader) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-