public class PM
Pact Matcher functions for 'and' and 'or'
| Modifier and Type | Field and Description |
|---|---|
static PM |
INSTANCE
Pact Matcher functions for 'and' and 'or'
|
| Modifier and Type | Method and Description |
|---|---|
static au.com.dius.pact.model.matchingrules.TypeMatcher |
booleanType()
Attribute that must be a boolean
|
static au.com.dius.pact.model.matchingrules.DateMatcher |
date()
Attribute that must be formatted as an ISO date
|
static au.com.dius.pact.model.matchingrules.DateMatcher |
date(java.lang.String format)
Attribute that must match the provided date format
|
static au.com.dius.pact.model.matchingrules.NumberTypeMatcher |
decimalType()
Attribute that must be a decimal value
|
static au.com.dius.pact.model.matchingrules.RegexMatcher |
hexValue()
Attribute that must be encoded as a hexadecimal value
|
static au.com.dius.pact.model.matchingrules.TypeMatcher |
id()
Attribute that must be a numeric identifier
|
static au.com.dius.pact.model.matchingrules.IncludeMatcher |
includesStr(java.lang.String value)
Attribute that must include the provided string value
|
static au.com.dius.pact.model.matchingrules.NumberTypeMatcher |
integerType()
Attribute that must be an integer
|
static au.com.dius.pact.model.matchingrules.RegexMatcher |
ipAddress()
Attribute that must be an IP4 address
|
static au.com.dius.pact.model.matchingrules.NullMatcher |
nullValue()
Matches a null value
|
static au.com.dius.pact.model.matchingrules.NumberTypeMatcher |
numberType()
Attribute that can be any number
|
static au.com.dius.pact.model.matchingrules.RegexMatcher |
stringMatcher(java.lang.String regex)
Attribute that must match the regular expression
|
static au.com.dius.pact.model.matchingrules.TypeMatcher |
stringType()
Attribute that can be any string
|
static au.com.dius.pact.model.matchingrules.TimeMatcher |
time()
Attribute that must be an ISO formatted time
|
static au.com.dius.pact.model.matchingrules.TimeMatcher |
time(java.lang.String format)
Attribute that must match the given time format
|
static au.com.dius.pact.model.matchingrules.TimestampMatcher |
timestamp()
Attribute that must be an ISO formatted timestamp
|
static au.com.dius.pact.model.matchingrules.TimestampMatcher |
timestamp(java.lang.String format)
Attribute that must match the given timestamp format
|
static au.com.dius.pact.model.matchingrules.RegexMatcher |
uuid()
Attribute that must be encoded as an UUID
|
public static PM INSTANCE
Pact Matcher functions for 'and' and 'or'
public static au.com.dius.pact.model.matchingrules.TypeMatcher stringType()
Attribute that can be any string
public static au.com.dius.pact.model.matchingrules.NumberTypeMatcher numberType()
Attribute that can be any number
public static au.com.dius.pact.model.matchingrules.NumberTypeMatcher integerType()
Attribute that must be an integer
public static au.com.dius.pact.model.matchingrules.NumberTypeMatcher decimalType()
Attribute that must be a decimal value
public static au.com.dius.pact.model.matchingrules.TypeMatcher booleanType()
Attribute that must be a boolean
public static au.com.dius.pact.model.matchingrules.RegexMatcher stringMatcher(java.lang.String regex)
Attribute that must match the regular expression
regex - regular expressionpublic static au.com.dius.pact.model.matchingrules.TimestampMatcher timestamp()
Attribute that must be an ISO formatted timestamp
public static au.com.dius.pact.model.matchingrules.TimestampMatcher timestamp(java.lang.String format)
Attribute that must match the given timestamp format
format - timestamp formatpublic static au.com.dius.pact.model.matchingrules.DateMatcher date()
Attribute that must be formatted as an ISO date
public static au.com.dius.pact.model.matchingrules.DateMatcher date(java.lang.String format)
Attribute that must match the provided date format
format - date format to matchpublic static au.com.dius.pact.model.matchingrules.TimeMatcher time()
Attribute that must be an ISO formatted time
public static au.com.dius.pact.model.matchingrules.TimeMatcher time(java.lang.String format)
Attribute that must match the given time format
format - time format to matchpublic static au.com.dius.pact.model.matchingrules.RegexMatcher ipAddress()
Attribute that must be an IP4 address
public static au.com.dius.pact.model.matchingrules.TypeMatcher id()
Attribute that must be a numeric identifier
public static au.com.dius.pact.model.matchingrules.RegexMatcher hexValue()
Attribute that must be encoded as a hexadecimal value
public static au.com.dius.pact.model.matchingrules.RegexMatcher uuid()
Attribute that must be encoded as an UUID
public static au.com.dius.pact.model.matchingrules.NullMatcher nullValue()
Matches a null value
public static au.com.dius.pact.model.matchingrules.IncludeMatcher includesStr(java.lang.String value)
Attribute that must include the provided string value
value - Value that must be included