spring-framework
5.3.39

# ModelResultMatchersDsl

class ModelResultMatchersDsl
Content copied to clipboard

Provide a ModelResultMatchers Kotlin DSL in order to be able to write idiomatic Kotlin code.

#### Author

Sebastien Deleuze

#### Since

5.3

## Functions

attribute
Link copied to clipboard
fun attribute(name: String, value: Any?)
Content copied to clipboard
fun <T> attribute(name: String, matcher: Matcher<T>)
Content copied to clipboard
attributeDoesNotExist
Link copied to clipboard
fun attributeDoesNotExist(vararg name: String)
Content copied to clipboard
attributeErrorCount
Link copied to clipboard
fun attributeErrorCount(name: String, expectedCount: Int)
Content copied to clipboard
attributeExists
Link copied to clipboard
fun attributeExists(vararg name: String)
Content copied to clipboard
attributeHasErrors
Link copied to clipboard
fun attributeHasErrors(vararg name: String)
Content copied to clipboard
attributeHasFieldErrorCode
Link copied to clipboard
fun attributeHasFieldErrorCode(name: String, fieldName: String, code: String)
Content copied to clipboard
fun attributeHasFieldErrorCode(name: String, fieldName: String, matcher: Matcher<String>)
Content copied to clipboard
attributeHasFieldErrors
Link copied to clipboard
fun attributeHasFieldErrors(name: String, vararg fieldNames: String)
Content copied to clipboard
attributeHasNoErrors
Link copied to clipboard
fun attributeHasNoErrors(vararg name: String)
Content copied to clipboard
errorCount
Link copied to clipboard
fun errorCount(expectedCount: Int)
Content copied to clipboard
hasErrors
Link copied to clipboard
fun hasErrors()
Content copied to clipboard
hasNoErrors
Link copied to clipboard
fun hasNoErrors()
Content copied to clipboard
size
Link copied to clipboard
fun size(size: Int)
Content copied to clipboard