RequestSpecificationBuilder

open class RequestSpecificationBuilder<P : Any>(requestType: KClass<P>)(source)

Constructors

Link copied to clipboard
constructor(requestType: KClass<P>)

Properties

Link copied to clipboard
val body: MutableList<Matcher<P?>>
Link copied to clipboard
val bodyString: MutableList<Matcher<String?>>
Link copied to clipboard
val headers: MutableList<Matcher<Headers>>
Link copied to clipboard
var path: Matcher<String>?
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun bodyMatchesPredicate(description: String? = null, predicate: (P?) -> Boolean): RequestSpecificationBuilder<P>

Adds a predicate to match against the request body.

Link copied to clipboard

Adds multiple predicates to match against the request body. Each predicate will be applied to evaluate whether the request body satisfies the specified conditions.

Link copied to clipboard
Link copied to clipboard
fun containsHeader(headerName: String, headerValue: String): RequestSpecificationBuilder<P>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard