public class JsonAssert
extends java.lang.Object
| Constructor and Description |
|---|
JsonAssert() |
| Modifier and Type | Method and Description |
|---|---|
static CollectionMatcher |
collectionWithSize(org.hamcrest.Matcher<? super java.lang.Integer> sizeMatcher) |
static org.hamcrest.Matcher<java.util.Collection<java.lang.Object>> |
emptyCollection() |
static org.hamcrest.Matcher<java.util.Map<java.lang.String,?>> |
mapContainingKey(org.hamcrest.Matcher<java.lang.String> keyMatcher) |
static <V> org.hamcrest.Matcher<? super java.util.Map<?,V>> |
mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher) |
static JsonAsserter |
with(java.io.InputStream is)
Creates a JSONAsserter
|
static JsonAsserter |
with(java.io.Reader reader)
Creates a JSONAsserter
|
static JsonAsserter |
with(java.lang.String json)
Creates a JSONAsserter
|
public static JsonAsserter with(java.lang.String json)
json - the JSON document to create a JSONAsserter forjava.text.ParseException - when the given JSON could not be parsedpublic static JsonAsserter with(java.io.Reader reader) throws java.io.IOException
reader - the reader of the json documentjava.text.ParseException - when the given JSON could not be parsedjava.io.IOExceptionpublic static JsonAsserter with(java.io.InputStream is) throws java.io.IOException
is - the input streamjava.text.ParseException - when the given JSON could not be parsedjava.io.IOExceptionpublic static CollectionMatcher collectionWithSize(org.hamcrest.Matcher<? super java.lang.Integer> sizeMatcher)
public static org.hamcrest.Matcher<java.util.Map<java.lang.String,?>> mapContainingKey(org.hamcrest.Matcher<java.lang.String> keyMatcher)
public static <V> org.hamcrest.Matcher<? super java.util.Map<?,V>> mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)
public static org.hamcrest.Matcher<java.util.Collection<java.lang.Object>> emptyCollection()