public class WebTestBase extends VertxTestBase
| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.core.http.HttpClient |
client |
protected static Set<io.vertx.core.http.HttpMethod> |
METHODS |
protected io.vertx.ext.web.Router |
router |
protected io.vertx.core.http.HttpServer |
server |
ENABLED_CIPHER_SUITES, repeatRule, USE_DOMAIN_SOCKETS, USE_NATIVE_TRANSPORT, vertices, vertxname| Constructor and Description |
|---|
WebTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected io.vertx.core.http.HttpClientOptions |
getHttpClientOptions() |
protected io.vertx.core.http.HttpServerOptions |
getHttpServerOptions() |
protected static io.vertx.core.buffer.Buffer |
normalizeLineEndingsFor(io.vertx.core.buffer.Buffer buff) |
void |
setUp() |
void |
tearDown() |
protected void |
testRequest(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
String responseBody) |
protected void |
testRequest(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
int statusCode,
String statusMessage,
String responseBody) |
protected void |
testRequest(io.vertx.core.http.HttpMethod method,
String path,
int statusCode,
String statusMessage) |
protected void |
testRequest(io.vertx.core.http.HttpMethod method,
String path,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBody) |
protected void |
testRequest(io.vertx.core.http.HttpMethod method,
String path,
int statusCode,
String statusMessage,
String responseBody) |
protected void |
testRequestBuffer(io.vertx.core.http.HttpClient client,
io.vertx.core.http.HttpMethod method,
int port,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer) |
protected void |
testRequestBuffer(io.vertx.core.http.HttpClient client,
io.vertx.core.http.HttpMethod method,
int port,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer,
boolean normalizeLineEndings) |
protected void |
testRequestBuffer(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer) |
protected void |
testRequestBuffer(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer,
boolean normalizeLineEndings) |
protected void |
testRequestWithAccepts(io.vertx.core.http.HttpMethod method,
String path,
String accepts,
int statusCode,
String statusMessage) |
protected void |
testRequestWithContentType(io.vertx.core.http.HttpMethod method,
String path,
String contentType,
int statusCode,
String statusMessage) |
protected void |
testRequestWithCookies(io.vertx.core.http.HttpMethod method,
String path,
String cookieHeader,
int statusCode,
String statusMessage) |
clusteredVertx, createWorker, createWorkers, getClusterManager, getOptions, setOptions, startNodes, startNodes, vertx, vertx, vinitafter, afterAsyncTestBase, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, assertWaitUntil, assertWaitUntil, await, await, awaitLatch, before, checkThread, clearThrown, close, complete, disableThreadChecks, fail, fail, fail, onFailure, onSuccess, testComplete, waitFor, waitForMore, waitUntil, waitUntilprotected static Set<io.vertx.core.http.HttpMethod> METHODS
protected io.vertx.core.http.HttpServer server
protected io.vertx.core.http.HttpClient client
protected io.vertx.ext.web.Router router
public void setUp()
throws Exception
setUp in class VertxTestBaseExceptionprotected io.vertx.core.http.HttpServerOptions getHttpServerOptions()
protected io.vertx.core.http.HttpClientOptions getHttpClientOptions()
public void tearDown()
throws Exception
tearDown in class VertxTestBaseExceptionprotected void testRequest(io.vertx.core.http.HttpMethod method,
String path,
int statusCode,
String statusMessage)
throws Exception
Exceptionprotected void testRequest(io.vertx.core.http.HttpMethod method,
String path,
int statusCode,
String statusMessage,
String responseBody)
throws Exception
Exceptionprotected void testRequest(io.vertx.core.http.HttpMethod method,
String path,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBody)
throws Exception
Exceptionprotected void testRequestWithContentType(io.vertx.core.http.HttpMethod method,
String path,
String contentType,
int statusCode,
String statusMessage)
throws Exception
Exceptionprotected void testRequestWithAccepts(io.vertx.core.http.HttpMethod method,
String path,
String accepts,
int statusCode,
String statusMessage)
throws Exception
Exceptionprotected void testRequestWithCookies(io.vertx.core.http.HttpMethod method,
String path,
String cookieHeader,
int statusCode,
String statusMessage)
throws Exception
Exceptionprotected void testRequest(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
int statusCode,
String statusMessage,
String responseBody)
throws Exception
Exceptionprotected void testRequest(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
String responseBody)
throws Exception
Exceptionprotected void testRequestBuffer(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer)
throws Exception
Exceptionprotected void testRequestBuffer(io.vertx.core.http.HttpMethod method,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer,
boolean normalizeLineEndings)
throws Exception
Exceptionprotected void testRequestBuffer(io.vertx.core.http.HttpClient client,
io.vertx.core.http.HttpMethod method,
int port,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer)
throws Exception
Exceptionprotected void testRequestBuffer(io.vertx.core.http.HttpClient client,
io.vertx.core.http.HttpMethod method,
int port,
String path,
Consumer<io.vertx.core.http.HttpClientRequest> requestAction,
Consumer<io.vertx.core.http.HttpClientResponse> responseAction,
int statusCode,
String statusMessage,
io.vertx.core.buffer.Buffer responseBodyBuffer,
boolean normalizeLineEndings)
throws Exception
Exceptionprotected static io.vertx.core.buffer.Buffer normalizeLineEndingsFor(io.vertx.core.buffer.Buffer buff)
Copyright © 2017. All rights reserved.