public class CommonMatchers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
areItemsUnique() |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
areItemsValid(io.apptik.json.Validator validator) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
doesItemCountMatches(int itemsCount) |
static org.hamcrest.Matcher<java.lang.CharSequence> |
hasPattern(java.lang.String regex) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isElementValid(io.apptik.json.Validator validator,
io.apptik.json.JsonElement element)
General matcher
|
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isInEnums(io.apptik.json.JsonArray enums) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isItemValid(io.apptik.json.Validator validator,
int itemPos) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isLessOrEqualThan(double value) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isLessThan(double value) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isMoreOrEqualThan(double value) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isMoreThan(double value) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isMultipleOf(double value) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isNoAdditionalProperties(java.util.Set<java.lang.String> properties,
java.util.Set<java.lang.String> patternProperties) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isOfType(java.util.List<java.lang.String> types) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isOfType(java.lang.String type) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isPropertyPatternValid(io.apptik.json.Validator validator,
java.lang.String propertyPattern) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isPropertyPresent(java.lang.String property) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
isPropertyValid(io.apptik.json.Validator validator,
java.lang.String property) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
matchesPattern(java.lang.String value) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
maxItems(int maxItems) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
maxProperties(int maxProperties) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
minItems(int minItems) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
minProperties(int minProperties) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
withCharsLessOrEqualTo(int value) |
static org.hamcrest.Matcher<io.apptik.json.JsonElement> |
withCharsMoreOrEqualTo(int value) |
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> withCharsLessOrEqualTo(int value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> withCharsMoreOrEqualTo(int value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> matchesPattern(java.lang.String value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isLessThan(double value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isLessOrEqualThan(double value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isMoreThan(double value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isMoreOrEqualThan(double value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isMultipleOf(double value)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isOfType(java.lang.String type)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isOfType(java.util.List<java.lang.String> types)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isInEnums(io.apptik.json.JsonArray enums)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> areItemsValid(io.apptik.json.Validator validator)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isItemValid(io.apptik.json.Validator validator,
int itemPos)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> doesItemCountMatches(int itemsCount)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> maxItems(int maxItems)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> minItems(int minItems)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> areItemsUnique()
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> maxProperties(int maxProperties)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> minProperties(int minProperties)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isPropertyPresent(java.lang.String property)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isPropertyValid(io.apptik.json.Validator validator,
java.lang.String property)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isPropertyPatternValid(io.apptik.json.Validator validator,
java.lang.String propertyPattern)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isNoAdditionalProperties(java.util.Set<java.lang.String> properties,
java.util.Set<java.lang.String> patternProperties)
public static org.hamcrest.Matcher<io.apptik.json.JsonElement> isElementValid(io.apptik.json.Validator validator,
io.apptik.json.JsonElement element)
validator - element - public static org.hamcrest.Matcher<java.lang.CharSequence> hasPattern(java.lang.String regex)