public abstract class IntegrationTestNoAppBase<R extends RequestContext<?>,W extends WebsocketContext<?>> extends IntegrationTestBase<R,W>
main() method.
In that case, the Guice Injector must be provided
explicitly.
The Server will be explicitly started since no app is going to do so by itself.
If you extend this base class directly, don't forget to add the default testing configurations Module if required! For example :
Spincast.configure().module(getDefaultTestingConfigurationsModule()).module(....
logger| Constructor and Description |
|---|
IntegrationTestNoAppBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeClass() |
protected void |
beforeStartServer()
Allows some initialization to be run once the Guice context
is created, but before the Server is started.
|
void |
beforeTest()
Ran before every test.
|
protected void |
clearRoutes() |
protected boolean |
removeSpincastRoutesToo()
Should the default Spincast Routes
be removed too? Or only the custom ones?
|
protected void |
startServer() |
afterClass, CONNECT, CONNECT, CONNECT, createTestUrl, createTestUrl, createTestUrl, DELETE, DELETE, DELETE, formatDate, GET, GET, GET, getCookieFactory, getGuiceTweakerPlugins, getHttpClient, getRouter, getServer, HEAD, HEAD, HEAD, isDisableSllCetificateErrors, OPTIONS, OPTIONS, OPTIONS, parseDate, PATCH, PATCH, PATCH, POST, POST, POST, PUT, PUT, PUT, stopServer, TRACE, TRACE, TRACE, validateCreatedInjector, websocket, websocket, websocketaddExtraSystemProperties, afterClassLoops, afterTest, beforeClassException, createGuiceTweaker, createInjector, createTestingFilePath, createTestingFilePath, deleteTempDir, getExtraSystemProperties, getGuiceTweakerConfigImplementationClass, getGuiceTweakerFromThreadLocal, getGuiceTweakerOverridingModule, getInjector, getSpincastConfig, getTestingWritableDir, isGuiceTweakerAutoTestingConfigBindings, resetSystemProperties, setSpincastConfig, testFailurepublic void beforeClass()
beforeClass in interface BeforeAfterClassMethodsProviderbeforeClass in class SpincastTestBaseprotected void startServer()
protected void beforeStartServer()
public void beforeTest()
beforeTest in class SpincastTestBaseprotected void clearRoutes()
protected boolean removeSpincastRoutesToo()
Copyright © 2017. All rights reserved.