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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.google.inject.Injector
     
    protected com.google.inject.Module
    Can be overriden with something like :
    protected List<org.spincast.core.guice.SpincastPlugin>
    The extra required plugins.
    protected final com.google.inject.Module
    We make this final to stay consistent with the AppBasedTestingBase testing hierarchy: to add an extra Module, you also need to override the getExtraOverridingModule() method here...
    protected final List<org.spincast.core.guice.SpincastPlugin>
    We make this final to stay consistent with the AppBasedTestingBase testing hierarchy: to add extra plugins, you also need to override the getExtraPlugins() 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NoAppCustomContextTypesTestingBase

      public NoAppCustomContextTypesTestingBase()
  • Method Details

    • createInjector

      protected com.google.inject.Injector createInjector()
      Specified by:
      createInjector in class org.spincast.testing.core.SpincastTestBase
    • getMainArgs

      protected String[] getMainArgs()
    • getGuiceTweakerExtraPlugins

      protected final List<org.spincast.core.guice.SpincastPlugin> getGuiceTweakerExtraPlugins()
      We make this final to stay consistent with the AppBasedTestingBase testing hierarchy: to add extra plugins, you also need to override the getExtraPlugins() method here...
      Overrides:
      getGuiceTweakerExtraPlugins in class org.spincast.testing.core.SpincastTestBase
    • getExtraPlugins

      protected List<org.spincast.core.guice.SpincastPlugin> 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 the AppBasedTestingBase testing hierarchy: to add an extra Module, you also need to override the getExtraOverridingModule() method here...
      Overrides:
      getGuiceTweakerExtraOverridingModule in class org.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()