AbstractJavaDataPartSpecBuilder

Base Java-friendly builder for matching multipart part content type and content.

Used by JavaFilePartSpecBuilder and JavaDataPartSpecBuilder.

Inheritors

Functions

Link copied to clipboard
fun bytes(value: ByteArray): T

Requires the part content bytes to equal value.

Link copied to clipboard
fun bytesMatches(predicate: Predicate<ByteArray?>): T

Requires the part content bytes to satisfy predicate.

Link copied to clipboard
fun contentType(contentType: String): T

Requires the part content type to equal contentType.

Link copied to clipboard
fun text(value: String): T

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

Link copied to clipboard
fun textMatches(predicate: Predicate<String?>): T

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