public class JsonAssert extends Object
| Constructor and Description |
|---|
JsonAssert() |
| Modifier and Type | Method and Description |
|---|---|
static CollectionMatcher |
collectionWithSize(org.hamcrest.Matcher<? super Integer> sizeMatcher) |
static org.hamcrest.Matcher<Collection<Object>> |
emptyCollection() |
static org.hamcrest.Matcher<Map<String,?>> |
mapContainingKey(org.hamcrest.Matcher<String> keyMatcher) |
static <V> org.hamcrest.Matcher<? super Map<?,V>> |
mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher) |
static JsonAsserter |
with(InputStream is)
Creates a JSONAsserter
|
static JsonAsserter |
with(Reader reader)
Creates a JSONAsserter
|
static JsonAsserter |
with(String json)
Creates a JSONAsserter
|
public static JsonAsserter with(String json)
json - the JSON document to create a JSONAsserter forParseException - when the given JSON could not be parsedpublic static JsonAsserter with(Reader reader) throws IOException
reader - the reader of the json documentParseException - when the given JSON could not be parsedIOExceptionpublic static JsonAsserter with(InputStream is) throws IOException
is - the input streamParseException - when the given JSON could not be parsedIOExceptionpublic static CollectionMatcher collectionWithSize(org.hamcrest.Matcher<? super Integer> sizeMatcher)
public static org.hamcrest.Matcher<Map<String,?>> mapContainingKey(org.hamcrest.Matcher<String> keyMatcher)
public static <V> org.hamcrest.Matcher<? super Map<?,V>> mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)
public static org.hamcrest.Matcher<Collection<Object>> emptyCollection()
Copyright © 2017. All rights reserved.