Modifier and Type | Method and Description |
---|---|
TestRequest |
TestRequest.expect(Consumer<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>>... asserts)
Add one or more response asserts to the TestRequest.
|
static TestRequest |
TestRequest.testRequest(io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> request)
Wraps
HttpRequest in a new TestRequest |
static TestRequest |
TestRequest.testRequest(io.vertx.ext.web.client.WebClient client,
io.vertx.core.http.HttpMethod method,
String path)
Creates a new
TestRequest object with provided client, method and path |
TestRequest |
TestRequest.with(Consumer<io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer>>... transformations)
Add one or more transformations to the TestRequest.
Note: this transformations are evaluated when one of the send methods is called |
Copyright © 2021 Eclipse. All rights reserved.