FormSpecBuilder

Configures form field and file-part matching for BodySpecBuilder.form.

Functions

Link copied to clipboard
fun field(name: String, matcher: Matcher<String?>): FormSpecBuilder

Requires field name to satisfy a Kotest matcher.

fun field(name: String, predicate: (String?) -> Boolean): FormSpecBuilder

Requires field name to satisfy predicate.

fun field(name: String, value: String): FormSpecBuilder

Requires field name to have exactly value.

Link copied to clipboard

Requires a file part named name and optionally configures file metadata/content matchers.