DataPartSpecBuilder

Configures matching for a multipart data part inside MultipartSpecBuilder.part.

Functions

Link copied to clipboard
fun bytes(matcher: Matcher<ByteArray?>): DataPartSpecBuilder

Requires the part content bytes to satisfy a Kotest matcher.

Requires the part content bytes to equal value.

Requires the part content bytes to satisfy predicate.

Link copied to clipboard

Requires the part content type to satisfy matcher.

Requires the part content type to equal contentType.

Link copied to clipboard
fun text(matcher: Matcher<String?>): DataPartSpecBuilder

Requires the part content decoded as UTF-8 text to satisfy a Kotest matcher.

fun text(predicate: (String?) -> Boolean): DataPartSpecBuilder

Requires the part content decoded as UTF-8 text to satisfy predicate.

Requires the part content decoded as UTF-8 text to equal value.