public class Matchers
| Modifier and Type | Method and Description |
|---|---|
static Matcher |
bool(java.lang.Boolean value)
Match any boolean
|
static Matcher |
bool()
Match any boolean
|
static Matcher |
date(java.lang.String pattern,
java.lang.String value)
Match a date
|
static Matcher |
date(java.lang.String pattern)
Match a date
|
static Matcher |
date()
Match a date
|
static Matcher |
decimal(java.lang.Number value)
Match a decimal value
|
static Matcher |
decimal()
Match a decimal value
|
static Matcher |
equalTo(java.lang.Object value)
Match Equality
|
kotlin.text.Regex |
getHEXADECIMAL() |
kotlin.text.Regex |
getIP_ADDRESS() |
kotlin.text.Regex |
getUUID_REGEX() |
static Matcher |
hexValue(java.lang.String value)
Match a hexadecimal value
|
static Matcher |
hexValue()
Match a hexadecimal value
|
static Matcher |
identifier(java.lang.Object value)
Match a numeric identifier (integer)
|
static Matcher |
identifier()
Match a numeric identifier (integer)
|
static Matcher |
includesStr(java.lang.String value)
Matches if the string is included in the value
|
static Matcher |
integer(java.lang.Long value)
Match an integer value
|
static Matcher |
integer()
Match an integer value
|
static Matcher |
ipAddress(java.lang.String value)
Match an IP Address
|
static Matcher |
ipAddress()
Match an IP Address
|
static Matcher |
nullValue()
Matches a null value
|
static Matcher |
numeric(java.lang.Number value)
Match a numeric value
|
static Matcher |
numeric()
Match a numeric value
|
static Matcher |
regexp(java.util.regex.Pattern re,
java.lang.String value)
Match a regular expression
|
static Matcher |
regexp(java.util.regex.Pattern re)
Match a regular expression
|
static Matcher |
regexp(java.lang.String regexp,
java.lang.String value)
Match a regular expression
|
static Matcher |
regexp(java.lang.String regexp)
Match a regular expression
|
static Matcher |
string(java.lang.String value)
Match any string value
|
static Matcher |
string()
Match any string value
|
static Matcher |
time(java.lang.String pattern,
java.lang.String value)
Match a time
|
static Matcher |
time(java.lang.String pattern)
Match a time
|
static Matcher |
time()
Match a time
|
static Matcher |
timestamp(java.lang.String pattern,
java.lang.String value)
Match a timestamp
|
static Matcher |
timestamp(java.lang.String pattern)
Match a timestamp
|
static Matcher |
timestamp()
Match a timestamp
|
static Matcher |
uuid(java.lang.String value)
Match a universally unique identifier (UUID)
|
static Matcher |
uuid()
Match a universally unique identifier (UUID)
|
public static Matchers INSTANCE
public kotlin.text.Regex getHEXADECIMAL()
public kotlin.text.Regex getIP_ADDRESS()
public kotlin.text.Regex getUUID_REGEX()
public static Matcher regexp(java.util.regex.Pattern re, java.lang.String value)
Match a regular expression
re - Regular expression patternvalue - Example value, if not provided a random one will be generatedpublic static Matcher regexp(java.util.regex.Pattern re)
Match a regular expression
re - Regular expression patternpublic static Matcher regexp(java.lang.String regexp, java.lang.String value)
Match a regular expression
value - Example value, if not provided a random one will be generatedpublic static Matcher regexp(java.lang.String regexp)
Match a regular expression
public static Matcher hexValue(java.lang.String value)
Match a hexadecimal value
value - Example value, if not provided a random one will be generatedpublic static Matcher hexValue()
Match a hexadecimal value
public static Matcher identifier(java.lang.Object value)
Match a numeric identifier (integer)
value - Example value, if not provided a random one will be generatedpublic static Matcher identifier()
Match a numeric identifier (integer)
public static Matcher ipAddress(java.lang.String value)
Match an IP Address
value - Example value, if not provided 127.0.0.1 will be generatedpublic static Matcher ipAddress()
Match an IP Address
public static Matcher numeric(java.lang.Number value)
Match a numeric value
value - Example value, if not provided a random one will be generatedpublic static Matcher numeric()
Match a numeric value
public static Matcher decimal(java.lang.Number value)
Match a decimal value
value - Example value, if not provided a random one will be generatedpublic static Matcher decimal()
Match a decimal value
public static Matcher integer(java.lang.Long value)
Match an integer value
value - Example value, if not provided a random one will be generatedpublic static Matcher integer()
Match an integer value
public static Matcher timestamp(java.lang.String pattern, java.lang.String value)
Match a timestamp
pattern - Pattern to use to match. If not provided, an ISO pattern will be used.value - Example value, if not provided the current date and time will be usedpublic static Matcher timestamp(java.lang.String pattern)
Match a timestamp
pattern - Pattern to use to match. If not provided, an ISO pattern will be used.public static Matcher timestamp()
Match a timestamp
public static Matcher time(java.lang.String pattern, java.lang.String value)
Match a time
pattern - Pattern to use to match. If not provided, an ISO pattern will be used.value - Example value, if not provided the current time will be usedpublic static Matcher time(java.lang.String pattern)
Match a time
pattern - Pattern to use to match. If not provided, an ISO pattern will be used.public static Matcher time()
Match a time
public static Matcher date(java.lang.String pattern, java.lang.String value)
Match a date
pattern - Pattern to use to match. If not provided, an ISO pattern will be used.value - Example value, if not provided the current date will be usedpublic static Matcher date(java.lang.String pattern)
Match a date
pattern - Pattern to use to match. If not provided, an ISO pattern will be used.public static Matcher date()
Match a date
public static Matcher uuid(java.lang.String value)
Match a universally unique identifier (UUID)
value - optional value to use for examplespublic static Matcher uuid()
Match a universally unique identifier (UUID)
public static Matcher string(java.lang.String value)
Match any string value
value - Example value, if not provided a random one will be generatedpublic static Matcher string()
Match any string value
public static Matcher bool(java.lang.Boolean value)
Match any boolean
value - Example value, if not provided a random one will be generatedpublic static Matcher bool()
Match any boolean
public static Matcher equalTo(java.lang.Object value)
Match Equality
value - Value to match topublic static Matcher includesStr(java.lang.String value)
Matches if the string is included in the value
value - String value that must be presentpublic static Matcher nullValue()
Matches a null value