public class Result_matchersKt
@NotNull public static io.kotest.matchers.Matcher<io.monkeypatch.kaval.core.ValidationResult> beValid()
Check a ValidationResult is Valid
@NotNull public static io.kotest.matchers.Matcher<io.monkeypatch.kaval.core.ValidationResult> beInvalid()
Check a ValidationResult is Invalid
@NotNull
public static io.kotest.matchers.Matcher<io.monkeypatch.kaval.core.ValidationResult> beInvalidOnField(@NotNull
java.lang.String field)
Check a ValidationResult is Invalid on a field
field - the field name@NotNull
public static io.kotest.matchers.Matcher<io.monkeypatch.kaval.core.ValidationResult> beInvalidWithReason(@NotNull
java.lang.String reason)
Check a ValidationResult is Invalid with a specific reason
reason - the reason@NotNull
public static io.kotest.matchers.Matcher<io.monkeypatch.kaval.core.ValidationResult> beInvalidWithAllReasons(@NotNull
java.lang.String firstReason,
@NotNull
java.lang.String... reasons)
Check a ValidationResult is Invalid with all reasons
firstReason - the first reasonsreasons - other reasons@NotNull
public static io.kotest.matchers.Matcher<io.monkeypatch.kaval.core.ValidationResult> beInvalidWithAny(@NotNull
io.kotest.matchers.Matcher<java.lang.String> reasonMatcher)
Check a ValidationResult is Invalid with a specific reason Matcher
reasonMatcher - the reason Matcher