Class NoAppCustomContextTypesTestingBase<R extends RequestContext<?>,W extends WebsocketContext<?>>

java.lang.Object
org.spincast.testing.core.SpincastTestBase
org.spincast.testing.defaults.NoAppCustomContextTypesTestingBase<R,W>
All Implemented Interfaces:
BeforeAfterClassMethodsProvider, CanBeDisabled, RepeatedClassAfterMethodProvider, TestFailureListener
Direct Known Subclasses:
NoAppTestingBase

public abstract class NoAppCustomContextTypesTestingBase<R extends RequestContext<?>,W extends WebsocketContext<?>> extends SpincastTestBase
  • Constructor Details

    • NoAppCustomContextTypesTestingBase

      public NoAppCustomContextTypesTestingBase()
  • Method Details

    • createInjector

      protected com.google.inject.Injector createInjector()
      Description copied from class: SpincastTestBase
      The test class must implement this method to create the Guice injector. It can be done by starting a real application (with a main(...) method) or by creating a custom Injector.
      Specified by:
      createInjector in class SpincastTestBase
    • getMainArgs

      protected String[] getMainArgs()
    • getGuiceTweakerExtraPlugins

      protected final List<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 SpincastTestBase
    • getExtraPlugins

      protected List<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 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 RequestContext<?>> getRequestContextImplementationClass()
    • getWebsocketContextImplementationClass

      protected abstract Class<? extends WebsocketContext<?>> getWebsocketContextImplementationClass()