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