FilePartSpecBuilder

Functions

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

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 filename(matcher: Matcher<String?>): FilePartSpecBuilder

Requires the uploaded filename to satisfy a Kotest matcher.

Requires the uploaded filename to satisfy predicate.

Requires the uploaded filename to equal value.

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

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

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

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

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