public abstract class IntegrationTestAppBase<R extends RequestContext<?>,W extends WebsocketContext<?>> extends IntegrationTestBase<R,W>
main()
method).
This class needs to be parametrized with the Request context type
and WebSocket Context type to use.
| Constructor and Description |
|---|
IntegrationTestAppBase() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.inject.Injector |
createInjector()
At this level,
createInjector() expects
your application to use the Spincast utility class
from the spincast-default artifact to initialize
your app. |
protected abstract void |
initApp()
Starts the application.
|
protected boolean |
isEnableGuiceTweaker()
final method : it is not allowed to disable the Guice Tweaker
when an App is used since it is the only way to get
the Injector!
|
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, beforeClass, beforeTest, createGuiceTweaker, createTestingFilePath, createTestingFilePath, deleteTempDir, getInjector, getSpincastConfig, getSpincastConfigTestingImplementation, getSpincastPluginFromThreadLocal, getTestingWritableDir, isEnableGuiceTweakerExtraPlugins, isEnableGuiceTweakerTestingConfigMecanism, setSpincastConfig, setupSpincastConfigTesting, testFailureprotected final boolean isEnableGuiceTweaker()
isEnableGuiceTweaker in class SpincastTestBaseprotected com.google.inject.Injector createInjector()
createInjector() expects
your application to use the Spincast utility class
from the spincast-default artifact to initialize
your app. It is going to use a
GuiceTweaker ThreadLocal variable to
tweak how the Guice context is created and to retrieve
the resulting Guice injector.
If your application doesn't use the Spincast utility class
from the spincast-default artifact to initialize
your app, you should probably override this method and it's up to you
return the proper Guice Injector to use.
createInjector in class SpincastTestBaseprotected abstract void initApp()
Copyright © 2017. All rights reserved.