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.
| Constructor and Description |
|---|
IntegrationTestNoAppBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeClass()
Called before the tests of the class are ran.
|
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 GuiceTweaker |
createGuiceTweaker()
Since we do not call "App.main(...)" in test
class in this branch, we don't need to bind
the current class to the Guice context : the
Server will be started explicitly and the
|
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, 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, websocket, websocketafterClassLoops, afterTest, createInjector, createTestingFilePath, createTestingFilePath, deleteTempDir, getInjector, getSpincastConfig, getSpincastConfigTestingImplementation, getSpincastPluginFromThreadLocal, getTestingWritableDir, isEnableGuiceTweaker, isEnableGuiceTweakerExtraPlugins, isEnableGuiceTweakerTestingConfigMecanism, setSpincastConfig, setupSpincastConfigTesting, testFailureprotected GuiceTweaker createGuiceTweaker()
createGuiceTweaker in class SpincastTestBasepublic void beforeClass()
BeforeAfterClassMethodsProviderbeforeClass 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.