|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.restdriver.serverdriver.Json
public final class Json
Class supplying static methods to help with JSON representations.
| Method Summary | |
|---|---|
static org.codehaus.jackson.JsonNode |
asJson(Response response)
Converts the content of the response to a JSON node. |
static org.codehaus.jackson.JsonNode |
asJson(String json)
Converts the given string to a JSON node. |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
containingValue(org.hamcrest.Matcher<?> matcher)
Creates a new instance of ContainingValue. |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
hasJsonArray(String fieldName,
org.hamcrest.Matcher<?> matcher)
Creates a new instance of HasJsonArray. |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
hasJsonValue(String fieldName,
org.hamcrest.Matcher<?> matcher)
Creates a new instance of HasJsonValue. |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
withSize(org.hamcrest.Matcher<?> matcher)
Creates a new instance of WithSize. |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
withValueAt(int position,
org.hamcrest.Matcher<?> matcher)
Creates a new instance of WithValueAt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.codehaus.jackson.JsonNode asJson(Response response)
response - The response whose content is to be converted
public static org.codehaus.jackson.JsonNode asJson(String json)
json - The string which is to be converted
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> hasJsonValue(String fieldName,
org.hamcrest.Matcher<?> matcher)
fieldName - The name of the field in the JSON node which will be evaluatedmatcher - The matcher to use for evaluation
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> hasJsonArray(String fieldName,
org.hamcrest.Matcher<?> matcher)
fieldName - The name of the field in the JSON node which will be evaluatedmatcher - The matcher to use for evaluation
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> containingValue(org.hamcrest.Matcher<?> matcher)
matcher - The matcher to use for evaluation
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> withValueAt(int position,
org.hamcrest.Matcher<?> matcher)
position - The position of the value to be evaluatedmatcher - The matcher to use for evaluation
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> withSize(org.hamcrest.Matcher<?> matcher)
matcher - The matcher to use for evaluation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||