Package org.spincast.testing.defaults
Class NoAppWebsocketTestingBase
java.lang.Object
org.spincast.testing.core.SpincastTestBase
org.spincast.testing.core.AppBasedTestingBase<org.spincast.core.exchange.DefaultRequestContext,W>
org.spincast.testing.defaults.AppBasedWebsocketTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
org.spincast.testing.defaults.NoAppWebsocketTestingBase
- All Implemented Interfaces:
org.spincast.testing.junitrunner.BeforeAfterClassMethodsProvider,org.spincast.testing.junitrunner.CanBeDisabled,org.spincast.testing.junitrunner.RepeatedClassAfterMethodProvider,org.spincast.testing.junitrunner.TestFailureListener
public abstract class NoAppWebsocketTestingBase
extends AppBasedWebsocketTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
Base class for WebSocket testing without an App.
-
Field Summary
FieldsFields inherited from class org.spincast.testing.defaults.AppBasedWebsocketTestingBase
spincastHttpClientUtilsFields inherited from class org.spincast.testing.core.SpincastTestBase
spincastConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidAllows some initialization to be run once the Guice context is created, but before the Server is started.voidRan before every test.protected final voidprotected voidprotected final org.spincast.testing.core.AppTestingConfigsprotected String[]protected Class<? extends org.spincast.core.config.SpincastConfig>protected booleanShould the default Spincast Routes be removed too? Or only the custom ones?protected voidMethods inherited from class org.spincast.testing.defaults.AppBasedWebsocketTestingBase
closeAllWebsocketEndpoints, getExtraOverridingModule, getExtraOverridingModule3, getSecSocketKey, getServerPingIntervalSeconds, getSpincastHttpClientUtils, getSpincastUndertowConfigImplementation, getWebsocketTestExpectedWebsocketV13AcceptHeaderValue, validateIsNotWebsocketUpgradeHttpResponse, validateIsWebsocketUpgradeHttpResponse, websocketMethods inherited from class org.spincast.testing.core.AppBasedTestingBase
afterClass, clearPreviousResponseCookies, CONNECT, CONNECT, CONNECT, createInjector, createTestUrl, createTestUrl, createTestUrl, createTestUrl, DELETE, DELETE, DELETE, formatDate, GET, GET, GET, getCookieFactory, getExtraExactBindingsToRemoveBeforePlugins, getExtraPlugins, getGuiceTweakerExtraOverridingModule, getGuiceTweakerExtraPlugins, getHttpClient, getPreviousResponseCookie, getPreviousResponseCookies, getRouter, getServer, getTestingConfigImplementationClass, HEAD, HEAD, HEAD, isDisableBindCurrentClass, isDisableSllCetificateErrors, isIgnoreMethodsAnnotatedWithInjectDuringConfigurationsTweaking, isSetSecureFalseOnCookiesFromBag, OPTIONS, OPTIONS, OPTIONS, parseDate, PATCH, PATCH, PATCH, POST, POST, POST, PUT, PUT, PUT, saveResponseCookies, stopServer, TRACE, TRACE, TRACE, tweakConfigurations, validateCreatedInjector, websocket, websocketMethods inherited from class org.spincast.testing.core.SpincastTestBase
addExtraSystemProperties, afterClassLoops, afterTest, beforeClassException, createGuiceTweaker, createTestingDir, createTestingFilePath, createTestingFilePath, deleteTestingWritableTempDir, getExtraSystemProperties, getGuiceTweakerFromThreadLocal, getGuiceTweakerPluginsToDisable, getInjector, getSpincastConfig, getTestingWritableTempDir, isTestClassDisabledPostBeforeClass, isTestClassDisabledPreBeforeClass, resetSystemProperties, testFailure
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
NoAppWebsocketTestingBase
public NoAppWebsocketTestingBase()
-
-
Method Details
-
getAppTestingConfigs
protected final org.spincast.testing.core.AppTestingConfigs getAppTestingConfigs()- Specified by:
getAppTestingConfigsin classorg.spincast.testing.core.AppBasedTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
-
getTestingConfigImplClass
-
callAppMainMethod
protected final void callAppMainMethod()- Specified by:
callAppMainMethodin classorg.spincast.testing.core.AppBasedTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
-
getMainArgs
-
beforeClass
public void beforeClass()- Specified by:
beforeClassin interfaceorg.spincast.testing.junitrunner.BeforeAfterClassMethodsProvider- Overrides:
beforeClassin classorg.spincast.testing.core.AppBasedTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
-
startServer
protected void startServer() -
beforeStartServer
protected void beforeStartServer()Allows some initialization to be run once the Guice context is created, but before the Server is started. -
beforeTest
public void beforeTest()Ran before every test.- Overrides:
beforeTestin classAppBasedWebsocketTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
-
clearRoutes
protected void clearRoutes() -
removeSpincastRoutesToo
protected boolean removeSpincastRoutesToo()Should the default Spincast Routes be removed too? Or only the custom ones?
-