public class UnitTestBase extends SpincastTestBase
| Constructor and Description |
|---|
UnitTestBase() |
UnitTestBase(Class<? extends org.spincast.core.exchange.RequestContext<?>> requestContextImplementationClass,
Class<? extends org.spincast.core.websocket.WebsocketContext<?>> websocketContextImplementationClass) |
| Modifier and Type | Method and Description |
|---|---|
protected org.spincast.core.guice.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 com.google.inject.Injector |
createInjector() |
protected com.google.inject.Module |
getExtraOverridingModule()
If all the test class wants to tweak from a default
Spincast.configure() generated Injector is
to add a module, one can be specified by overriding this
method. |
protected Class<? extends org.spincast.core.exchange.RequestContext<?>> |
getRequestContextImplementationClass() |
protected Class<? extends org.spincast.core.websocket.WebsocketContext<?>> |
getWebsocketContextImplementationClass() |
afterClass, afterClassLoops, afterTest, beforeClass, beforeTest, createTestingFilePath, createTestingFilePath, deleteTempDir, getGuiceTweakerExtraPlugins, getInjector, getSpincastConfig, getSpincastConfigTestingImplementation, getSpincastPluginFromThreadLocal, getTestingWritableDir, isEnableGuiceTweaker, isEnableGuiceTweakerExtraPlugins, isEnableGuiceTweakerTestingConfigMecanism, setSpincastConfig, setupSpincastConfigTesting, testFailureprotected Class<? extends org.spincast.core.exchange.RequestContext<?>> getRequestContextImplementationClass()
protected Class<? extends org.spincast.core.websocket.WebsocketContext<?>> getWebsocketContextImplementationClass()
protected com.google.inject.Injector createInjector()
createInjector in class SpincastTestBaseprotected org.spincast.core.guice.GuiceTweaker createGuiceTweaker()
createGuiceTweaker in class SpincastTestBaseprotected com.google.inject.Module getExtraOverridingModule()
Spincast.configure() generated Injector is
to add a module, one can be specified by overriding this
method.Copyright © 2017. All rights reserved.