public class JsonMatchers extends Object
Constructor and Description |
---|
JsonMatchers() |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> |
hasBooleanNode(String name,
boolean value) |
static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> |
hasJsonField(String name) |
static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> |
hasLongNode(String name,
long value) |
static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> |
hasNodeSize(int size) |
static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> |
hasTextNode(String name,
String value) |
static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> |
hasTextNodeContaining(String name,
String value) |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
isArray() |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
isObject() |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
isText(String expected) |
static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> |
isTextContaining(String expected) |
public static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> hasNodeSize(int size)
public static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> hasJsonField(String name)
public static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> hasLongNode(String name, long value)
public static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> hasTextNode(String name, String value)
public static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> hasTextNodeContaining(String name, String value)
public static org.hamcrest.Matcher<org.codehaus.jackson.JsonNode> hasBooleanNode(String name, boolean value)
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> isText(String expected)
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> isTextContaining(String expected)
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> isObject()
public static org.hamcrest.TypeSafeMatcher<org.codehaus.jackson.JsonNode> isArray()
Copyright © 2003–2020 Atlassian. All rights reserved.