RestClientInterpreter

class RestClientInterpreter(client: RestClient)(source)

Executes Tapik endpoints using a Spring RestClient while enforcing status and content-type checks.

Parameters

client

underlying RestClient instance.

Constructors

Link copied to clipboard
constructor(client: RestClient)

Functions

Link copied to clipboard
fun send(method: Method, uri: URI, inputHeaders: Map<String, List<String>>, inputBodyContentType: MediaType?, inputBody: ByteArray?, outputs: List<Output<*, *>>): ResponseEntity<ByteArray>

Sends a request to the configured client and validates the response against the expected outputs.