public.javadoc.org.spincast.testing.defaults.NoAppStartHttpServerTestingBase.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
NoAppStartHttpServerTestingBase (org.spincast:spincast-framework 1.14.0 API)
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
Constructors
Constructor and Description
NoAppStartHttpServerTestingBase()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected Class<? extends RequestContext<?>>
getRequestContextImplementationClass()
protected Class<? extends WebsocketContext<?>>
getWebsocketContextImplementationClass()
-
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
-
-
Method Detail
-
getRequestContextImplementationClass
protected Class<? extends RequestContext<?>> getRequestContextImplementationClass()
-
getWebsocketContextImplementationClass
protected Class<? extends WebsocketContext<?>> getWebsocketContextImplementationClass()
Copyright © 2019. All rights reserved.