bodyMatchesPredicate

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

predicate

The predicate used to evaluate the request body. It defines the condition that the request body must satisfy.