Package org.spincast.testing.defaults
Class NoAppStartHttpServerTestingBase
java.lang.Object
org.spincast.testing.core.SpincastTestBase
org.spincast.testing.core.AppBasedTestingBase<R,W>
org.spincast.testing.defaults.NoAppStartHttpServerCustomContextTypesTestingBase<DefaultRequestContext,DefaultWebsocketContext>
org.spincast.testing.defaults.NoAppStartHttpServerTestingBase
- All Implemented Interfaces:
BeforeAfterClassMethodsProvider
,CanBeDisabled
,RepeatedClassAfterMethodProvider
,TestFailureListener
public abstract class NoAppStartHttpServerTestingBase
extends NoAppStartHttpServerCustomContextTypesTestingBase<DefaultRequestContext,DefaultWebsocketContext>
Base class for testing without an App but when an HTTP
server is required.
Note that, by default, all routes are cleared
before each test! Even routes added by plugins...
To change this behavior, override the
clearRoutes()
method.
-
Field Summary
Fields inherited from class org.spincast.testing.core.SpincastTestBase
logger, spincastConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends RequestContext<?>>
protected Class<? extends WebsocketContext<?>>
Methods inherited from class org.spincast.testing.defaults.NoAppStartHttpServerCustomContextTypesTestingBase
beforeClass, beforeStartServer, beforeTest, callAppMainMethod, clearRoutes, createBootstrapper, getAppTestingConfigs, getMainArgs, getTestingConfigImplementationClass2, removeSpincastRoutesToo, startServer
Methods 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, getExtraOverridingModule, 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, websocket, websocket
Methods 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
-
Constructor Details
-
NoAppStartHttpServerTestingBase
public NoAppStartHttpServerTestingBase()
-
-
Method Details
-
getRequestContextImplementationClass
-
getWebsocketContextImplementationClass
-