-
- All Implemented Interfaces:
public final class MatcherExecutorKt
-
-
Method Summary
Modifier and Type Method Description final static StringvalueOf(Object value)final static StringtypeOf(Object value)final static StringsafeToString(Object value)final static <M extends Mismatch> List<M>matchInclude(String includedValue, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>domatch(MatchingRuleGroup matchers, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFn)Executor for matchers final static <M extends Mismatch> List<M>domatch(MatchingRule matcher, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFn, Boolean cascaded)final static <M extends Mismatch> List<M>matchEquality(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchRegex(String regex, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchType(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, Boolean allowEmpty)final static <M extends Mismatch> List<M>matchNumber(NumberTypeMatcher.NumberType numberType, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static BooleanmatchDecimal(Object actual)final static BooleanmatchInteger(Object actual)final static <M extends Mismatch> List<M>matchBoolean(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchDate(String pattern, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static BooleanisCollection(Object value)final static <M extends Mismatch> List<M>matchTime(String pattern, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchDateTime(String pattern, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchMinType(Integer min, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, Boolean cascaded)final static <M extends Mismatch> List<M>matchMaxType(Integer max, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, Boolean cascaded)final static <M extends Mismatch> List<M>matchEqualsIgnoreOrder(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchEqualsIgnoreOrder(List<String> path, Object expected, Object actual, Integer expectedSize, Integer actualSize, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchMinEqualsIgnoreOrder(Integer min, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchMaxEqualsIgnoreOrder(Integer max, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchNull(List<String> path, Object actual, MismatchFactory<M> mismatchFactory)final static <M extends Mismatch> List<M>matchHeaderWithParameters(List<String> path, ContentType contentType, Object actual, MismatchFactory<M> mismatchFactory)final static List<StatusMismatch>matchStatusCode(HttpStatus statusType, List<Integer> statusCodes, Integer expected, Integer actual)final static <M extends Mismatch> List<M>matchSemver(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)final static List<CatalogueEntry>matcherCatalogueEntries()-
-
Method Detail
-
safeToString
final static String safeToString(Object value)
-
matchInclude
final static <M extends Mismatch> List<M> matchInclude(String includedValue, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
domatch
final static <M extends Mismatch> List<M> domatch(MatchingRuleGroup matchers, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFn)
Executor for matchers
-
domatch
final static <M extends Mismatch> List<M> domatch(MatchingRule matcher, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFn, Boolean cascaded)
-
matchEquality
final static <M extends Mismatch> List<M> matchEquality(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchRegex
final static <M extends Mismatch> List<M> matchRegex(String regex, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchType
final static <M extends Mismatch> List<M> matchType(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, Boolean allowEmpty)
-
matchNumber
final static <M extends Mismatch> List<M> matchNumber(NumberTypeMatcher.NumberType numberType, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchDecimal
final static Boolean matchDecimal(Object actual)
-
matchInteger
final static Boolean matchInteger(Object actual)
-
matchBoolean
final static <M extends Mismatch> List<M> matchBoolean(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchDate
final static <M extends Mismatch> List<M> matchDate(String pattern, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
isCollection
final static Boolean isCollection(Object value)
-
matchTime
final static <M extends Mismatch> List<M> matchTime(String pattern, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchDateTime
final static <M extends Mismatch> List<M> matchDateTime(String pattern, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchMinType
final static <M extends Mismatch> List<M> matchMinType(Integer min, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, Boolean cascaded)
-
matchMaxType
final static <M extends Mismatch> List<M> matchMaxType(Integer max, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, Boolean cascaded)
-
matchEqualsIgnoreOrder
final static <M extends Mismatch> List<M> matchEqualsIgnoreOrder(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchEqualsIgnoreOrder
final static <M extends Mismatch> List<M> matchEqualsIgnoreOrder(List<String> path, Object expected, Object actual, Integer expectedSize, Integer actualSize, MismatchFactory<M> mismatchFactory)
-
matchMinEqualsIgnoreOrder
final static <M extends Mismatch> List<M> matchMinEqualsIgnoreOrder(Integer min, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchMaxEqualsIgnoreOrder
final static <M extends Mismatch> List<M> matchMaxEqualsIgnoreOrder(Integer max, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matchNull
final static <M extends Mismatch> List<M> matchNull(List<String> path, Object actual, MismatchFactory<M> mismatchFactory)
-
matchHeaderWithParameters
final static <M extends Mismatch> List<M> matchHeaderWithParameters(List<String> path, ContentType contentType, Object actual, MismatchFactory<M> mismatchFactory)
-
matchStatusCode
final static List<StatusMismatch> matchStatusCode(HttpStatus statusType, List<Integer> statusCodes, Integer expected, Integer actual)
-
matchSemver
final static <M extends Mismatch> List<M> matchSemver(List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory)
-
matcherCatalogueEntries
final static List<CatalogueEntry> matcherCatalogueEntries()
-
-
-
-