class ModelResultMatchersDsl
Provide a ModelResultMatchers Kotlin DSL in order to be able to write idiomatic Kotlin code.
Author
Sebastien Deleuze
Since
5.3
attribute |
fun <T> attribute(name: String, matcher: Matcher<T>): Unit fun attribute(name: String, value: Any?): Unit |
attributeDoesNotExist |
fun attributeDoesNotExist(vararg name: String): Unit |
attributeErrorCount |
fun <T> attributeErrorCount(name: String, expectedCount: Int): Unit |
attributeExists |
fun attributeExists(vararg name: String): Unit |
attributeHasErrors |
fun attributeHasErrors(vararg name: String): Unit |
attributeHasFieldErrorCode |
fun attributeHasFieldErrorCode(name: String, fieldName: String, code: String): Unit fun attributeHasFieldErrorCode(name: String, fieldName: String, matcher: Matcher<String>): Unit |
attributeHasFieldErrors |
fun attributeHasFieldErrors(name: String, vararg fieldNames: String): Unit |
attributeHasNoErrors |
fun attributeHasNoErrors(vararg name: String): Unit |
errorCount |
fun errorCount(expectedCount: Int): Unit |
hasErrors |
fun hasErrors(): Unit |
hasNoErrors |
fun hasNoErrors(): Unit |
size |
fun size(size: Int): Unit |