ContentResultMatchersDsl

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

Author

Sebastien Deleuze

Since

5.3

Functions

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