|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.jsonassert.JsonAssert
public class JsonAssert
User: kalle stenflo Date: 1/24/11 Time: 9:31 PM
| Constructor Summary | |
|---|---|
JsonAssert()
|
|
| Method Summary | ||
|---|---|---|
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
|
mapContainingValue(org.hamcrest.Matcher<? super V> valueMatcher)
|
|
static void |
setJsonProvider(JsonProvider jsonProvider)
|
|
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 |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonAssert()
| Method Detail |
|---|
public static void setJsonProvider(JsonProvider jsonProvider)
public static JsonAsserter with(java.lang.String json)
json - the JSON document to create a JSONAsserter for
java.text.ParseException - when the given JSON could not be parsed
public static JsonAsserter with(java.io.Reader reader)
throws java.io.IOException
reader - the reader of the json document
java.text.ParseException - when the given JSON could not be parsed
java.io.IOException
public static JsonAsserter with(java.io.InputStream is)
throws java.io.IOException
is - the input stream
java.text.ParseException - when the given JSON could not be parsed
java.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||