public abstract class WebsocketIntegrationTestNoAppBase<R extends org.spincast.core.exchange.RequestContext<?>,W extends org.spincast.core.websocket.WebsocketContext<?>> extends IntegrationTestNoAppBase<org.spincast.core.exchange.DefaultRequestContext,W>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
protected org.spincast.plugins.httpclient.utils.SpincastHttpClientUtils |
spincastHttpClientUtils |
| Constructor and Description |
|---|
WebsocketIntegrationTestNoAppBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeTest() |
protected void |
closeAllWebsocketEndpoints() |
protected com.google.inject.Injector |
createInjector() |
protected com.google.inject.Module |
getExtraOverridingModule() |
protected String |
getSecSocketKey()
Generates a random String for the "Sec-WebSocket-Key"
Websocket header.
|
protected int |
getServerPingIntervalSeconds() |
protected org.spincast.plugins.httpclient.utils.SpincastHttpClientUtils |
getSpincastHttpClientUtils() |
protected org.spincast.plugins.undertow.config.SpincastUndertowConfig |
getSpincastUndertowConfigImplementation() |
protected String |
getWebsocketTestExpectedWebsocketV13AcceptHeaderValue() |
protected void |
validateIsNotWebsocketUpgradeHttpResponse(org.spincast.plugins.httpclient.HttpResponse response)
Validates the response is NOT a Websocket upgrade permission.
|
protected void |
validateIsWebsocketUpgradeHttpResponse(String path,
org.spincast.plugins.httpclient.HttpResponse response)
Validates the response is a Websocket upgrade permission.
|
protected org.spincast.plugins.httpclient.websocket.builders.WebsocketRequestBuilder |
websocket(String pathOrUrl,
boolean isFullUrl,
boolean isHttps) |
beforeClass, beforeStartServer, clearRoutes, createGuiceTweaker, removeSpincastRoutesToo, startServerafterClass, CONNECT, CONNECT, CONNECT, createTestUrl, createTestUrl, createTestUrl, DELETE, DELETE, DELETE, formatDate, GET, GET, GET, getCookieFactory, getGuiceTweakerExtraPlugins, getHttpClient, getRouter, getServer, HEAD, HEAD, HEAD, isDisableSllCetificateErrors, OPTIONS, OPTIONS, OPTIONS, parseDate, PATCH, PATCH, PATCH, POST, POST, POST, PUT, PUT, PUT, stopServer, TRACE, TRACE, TRACE, websocket, websocketafterClassLoops, afterTest, createTestingFilePath, createTestingFilePath, deleteTempDir, getInjector, getSpincastConfig, getSpincastConfigTestingImplementation, getSpincastPluginFromThreadLocal, getTestingWritableDir, isEnableGuiceTweaker, isEnableGuiceTweakerExtraPlugins, isEnableGuiceTweakerTestingConfigMecanism, setSpincastConfig, setupSpincastConfigTesting, testFailureprotected final org.slf4j.Logger logger
@Inject protected org.spincast.plugins.httpclient.utils.SpincastHttpClientUtils spincastHttpClientUtils
protected com.google.inject.Injector createInjector()
createInjector in class SpincastTestBaseprotected org.spincast.plugins.undertow.config.SpincastUndertowConfig getSpincastUndertowConfigImplementation()
protected com.google.inject.Module getExtraOverridingModule()
protected org.spincast.plugins.httpclient.utils.SpincastHttpClientUtils getSpincastHttpClientUtils()
public void beforeTest()
beforeTest in class IntegrationTestNoAppBase<org.spincast.core.exchange.DefaultRequestContext,W extends org.spincast.core.websocket.WebsocketContext<?>>protected int getServerPingIntervalSeconds()
protected void closeAllWebsocketEndpoints()
protected String getWebsocketTestExpectedWebsocketV13AcceptHeaderValue()
protected String getSecSocketKey()
protected void validateIsWebsocketUpgradeHttpResponse(String path, org.spincast.plugins.httpclient.HttpResponse response)
protected void validateIsNotWebsocketUpgradeHttpResponse(org.spincast.plugins.httpclient.HttpResponse response)
protected org.spincast.plugins.httpclient.websocket.builders.WebsocketRequestBuilder websocket(String pathOrUrl, boolean isFullUrl, boolean isHttps)
websocket in class IntegrationTestBase<org.spincast.core.exchange.DefaultRequestContext,W extends org.spincast.core.websocket.WebsocketContext<?>>sslInfo - If not null, then the initial connection
is considered to be HTTPS and Websocket is served using SSL too.Copyright © 2017. All rights reserved.