ModelRequestSpecification
Represents a specification model for processing and asserting certain conditions on a request body.
This abstract class allows configuring conditions for matching and validating the attributes or structure of the request body, either as a whole object or in its string representation. Suitable for cases where flexible request validation is needed.
Type Parameters
The type parameter specifying the type of object the request body is expected to be.
Inheritors
Constructors
Functions
Adds a matcher to require that the request body string contains the specified substring.
Adds a condition to ensure the request body contains the specified substring, ignoring case sensitivity.
Adds a condition to ensure the request body does not contain the specified substring.
Adds a condition to ensure the request body does not contain the specified substring, ignoring case sensitivity.
Adds a matcher to require the request body object to be exactly equal to the specified object.
Adds a matcher to require the request body string to be exactly equal to the specified value.
Adds a matcher that requires the request body string to exactly match the specified JSON payload.
Adds a condition to verify that the request matches the specified matcher.
Adds a condition to verify that the request matches the specified predicate.
Adds a condition to verify that the request satisfies the specified call.