Package org.spincast.testing.defaults
Class NoAppCustomContextTypesTestingBase<R extends org.spincast.core.exchange.RequestContext<?>,W extends org.spincast.core.websocket.WebsocketContext<?>>
java.lang.Object
org.spincast.testing.core.SpincastTestBase
org.spincast.testing.defaults.NoAppCustomContextTypesTestingBase<R,W>
- All Implemented Interfaces:
org.spincast.testing.junitrunner.BeforeAfterClassMethodsProvider,org.spincast.testing.junitrunner.CanBeDisabled,org.spincast.testing.junitrunner.RepeatedClassAfterMethodProvider,org.spincast.testing.junitrunner.TestFailureListener
- Direct Known Subclasses:
NoAppTestingBase
public abstract class NoAppCustomContextTypesTestingBase<R extends org.spincast.core.exchange.RequestContext<?>,W extends org.spincast.core.websocket.WebsocketContext<?>>
extends org.spincast.testing.core.SpincastTestBase
-
Field Summary
Fields inherited from class org.spincast.testing.core.SpincastTestBase
logger, spincastConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.inject.Injectorprotected com.google.inject.ModuleCan be overriden with something like :protected List<org.spincast.core.guice.SpincastPlugin>The extra required plugins.protected final com.google.inject.ModuleWe make this final to stay consistent with theAppBasedTestingBasetesting hierarchy: to add an extra Module, you also need to override thegetExtraOverridingModule()method here...protected final List<org.spincast.core.guice.SpincastPlugin>We make this final to stay consistent with theAppBasedTestingBasetesting hierarchy: to add extra plugins, you also need to override thegetExtraPlugins()method here...protected String[]protected abstract Class<? extends org.spincast.core.exchange.RequestContext<?>>protected abstract Class<? extends org.spincast.core.websocket.WebsocketContext<?>>Methods inherited from class org.spincast.testing.core.SpincastTestBase
addExtraSystemProperties, afterClass, afterClassLoops, afterTest, beforeClass, beforeClassException, beforeTest, createGuiceTweaker, createTestingDir, createTestingFilePath, createTestingFilePath, deleteTestingWritableTempDir, getExtraExactBindingsToRemoveBeforePlugins, getExtraSystemProperties, getGuiceTweakerFromThreadLocal, getGuiceTweakerPluginsToDisable, getInjector, getSpincastConfig, getTestingConfigImplementationClass, getTestingWritableTempDir, isDisableBindCurrentClass, isTestClassDisabledPostBeforeClass, isTestClassDisabledPreBeforeClass, resetSystemProperties, testFailure, tweakConfigurations, validateCreatedInjector
-
Constructor Details
-
NoAppCustomContextTypesTestingBase
public NoAppCustomContextTypesTestingBase()
-
-
Method Details
-
createInjector
protected com.google.inject.Injector createInjector()- Specified by:
createInjectorin classorg.spincast.testing.core.SpincastTestBase
-
getMainArgs
-
getGuiceTweakerExtraPlugins
We make this final to stay consistent with theAppBasedTestingBasetesting hierarchy: to add extra plugins, you also need to override thegetExtraPlugins()method here...- Overrides:
getGuiceTweakerExtraPluginsin classorg.spincast.testing.core.SpincastTestBase
-
getExtraPlugins
The extra required plugins. Example:List<SpincastPlugin> extraPlugins = super.getExtraPlugins(); extraPlugins.add(new XXX()); return extraPlugins;
-
getGuiceTweakerExtraOverridingModule
protected final com.google.inject.Module getGuiceTweakerExtraOverridingModule()We make this final to stay consistent with theAppBasedTestingBasetesting hierarchy: to add an extra Module, you also need to override thegetExtraOverridingModule()method here...- Overrides:
getGuiceTweakerExtraOverridingModulein classorg.spincast.testing.core.SpincastTestBase
-
getExtraOverridingModule
protected com.google.inject.Module getExtraOverridingModule()Can be overriden with something like :return Modules.override(super.getExtraOverridingModule()).with(new SpincastGuiceModuleBase() { protected void configure() { // ... } }); -
getRequestContextImplementationClass
protected abstract Class<? extends org.spincast.core.exchange.RequestContext<?>> getRequestContextImplementationClass() -
getWebsocketContextImplementationClass
protected abstract Class<? extends org.spincast.core.websocket.WebsocketContext<?>> getWebsocketContextImplementationClass()
-