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

Link copied to clipboard
fun bytes(expectedContent: ByteArray)
Link copied to clipboard
fun contentType(contentType: String)
fun contentType(contentType: MediaType)
Link copied to clipboard
fun contentTypeCompatibleWith(contentType: String)
fun contentTypeCompatibleWith(contentType: MediaType)
Link copied to clipboard
fun encoding(contentType: String)
Link copied to clipboard
fun json(jsonContent: String, strict: Boolean = false)
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)