body Matches Predicate
fun bodyMatchesPredicate(description: String? = null, predicate: (P?) -> Boolean): RequestSpecificationBuilder<P>(source)
Adds a predicate to match against the request body.
The specified predicate will be used to evaluate whether the request body satisfies the defined condition.
Return
The same instance of RequestSpecificationBuilder with the predicate applied for further customization.
Parameters
description
The predicate's description. Returned as toString() value
predicate
The predicate used to evaluate the request body. It defines the condition that the request body must satisfy.