ValueMatcher

Class representing the field matching type and values contained in a JsonMatcher.

Functions

Link copied to clipboard
open fun apply(@Nullable jsonSerializable: JsonSerializable): Boolean
Applies the predicate against an object.
Link copied to clipboard
Creates a new array contains matcher that will check the entire array.
Creates a new array contains matcher for a specific value in the array.
Link copied to clipboard
Creates a new value matcher for when a field should be absent.
Link copied to clipboard
Creates a new value matcher for when a field should be present.
Link copied to clipboard
Creates a new number range value matcher.
Link copied to clipboard
Creates a new value matcher.
Link copied to clipboard
Creates a new value matcher for a semantic version string
Link copied to clipboard
open fun parse(@Nullable jsonValue: JsonValue): ValueMatcher
Parses a JsonValue object into a ValueMatcher.
Link copied to clipboard
open fun toString(): String

Inherited functions

Link copied to clipboard
abstract fun toJsonValue(): JsonValue
Returns the objects represented as a JsonValue.