ContentResultMatchersDsl

class ContentResultMatchersDsl

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)
contentType
Link copied to clipboard
fun contentType(contentType: String)
fun contentType(contentType: MediaType)
contentTypeCompatibleWith
Link copied to clipboard
fun contentTypeCompatibleWith(contentType: String)
fun contentTypeCompatibleWith(contentType: MediaType)
encoding
Link copied to clipboard
fun encoding(contentType: String)
json
Link copied to clipboard
fun json(jsonContent: String, strict: Boolean = false)
node
Link copied to clipboard
fun node(matcher: Matcher<Node>)
source
Link copied to clipboard
fun source(matcher: Matcher<Source>)
string
Link copied to clipboard
fun string(expectedContent: String)
fun string(matcher: Matcher<String>)
xml
Link copied to clipboard
fun xml(xmlContent: String)