spring-framework
5.3.39

# ContentResultMatchersDsl

class ContentResultMatchersDsl
Content copied to clipboard

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

#### Author

Sebastien Deleuze

#### Since

5.3

## Functions

bytes
Link copied to clipboard
fun bytes(expectedContent: ByteArray)
Content copied to clipboard
contentType
Link copied to clipboard
fun contentType(contentType: String)
Content copied to clipboard
fun contentType(contentType: MediaType)
Content copied to clipboard
contentTypeCompatibleWith
Link copied to clipboard
fun contentTypeCompatibleWith(contentType: String)
Content copied to clipboard
fun contentTypeCompatibleWith(contentType: MediaType)
Content copied to clipboard
encoding
Link copied to clipboard
fun encoding(contentType: String)
Content copied to clipboard
json
Link copied to clipboard
fun json(jsonContent: String, strict: Boolean = false)
Content copied to clipboard
node
Link copied to clipboard
fun node(matcher: Matcher<Node>)
Content copied to clipboard
source
Link copied to clipboard
fun source(matcher: Matcher<Source>)
Content copied to clipboard
string
Link copied to clipboard
fun string(expectedContent: String)
Content copied to clipboard
fun string(matcher: Matcher<String>)
Content copied to clipboard
xml
Link copied to clipboard
fun xml(xmlContent: String)
Content copied to clipboard