Class NoAppStartHttpServerTestingBase

java.lang.Object
org.spincast.testing.core.SpincastTestBase
org.spincast.testing.core.AppBasedTestingBase<R,W>
org.spincast.testing.defaults.NoAppStartHttpServerCustomContextTypesTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
org.spincast.testing.defaults.NoAppStartHttpServerTestingBase
All Implemented Interfaces:
org.spincast.testing.junitrunner.BeforeAfterClassMethodsProvider, org.spincast.testing.junitrunner.CanBeDisabled, org.spincast.testing.junitrunner.RepeatedClassAfterMethodProvider, org.spincast.testing.junitrunner.TestFailureListener

public abstract class NoAppStartHttpServerTestingBase extends NoAppStartHttpServerCustomContextTypesTestingBase<org.spincast.core.exchange.DefaultRequestContext,org.spincast.core.websocket.DefaultWebsocketContext>
Base class for testing without an App but when an HTTP server is required.

Note that, by default, all routes are cleared before each test! Even routes added by plugins... To change this behavior, override the clearRoutes() method.

  • 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 Class<? extends org.spincast.core.exchange.RequestContext<?>>
     
    protected Class<? extends org.spincast.core.websocket.WebsocketContext<?>>
     

    Methods inherited from class org.spincast.testing.core.AppBasedTestingBase

    afterClass, clearPreviousResponseCookies, CONNECT, CONNECT, CONNECT, createInjector, createTestUrl, createTestUrl, createTestUrl, createTestUrl, DELETE, DELETE, DELETE, formatDate, GET, GET, GET, getCookieFactory, getExtraExactBindingsToRemoveBeforePlugins, getExtraOverridingModule, getExtraPlugins, getGuiceTweakerExtraOverridingModule, getGuiceTweakerExtraPlugins, getHttpClient, getPreviousResponseCookie, getPreviousResponseCookies, getRouter, getServer, getTestingConfigImplementationClass, HEAD, HEAD, HEAD, isDisableBindCurrentClass, isDisableSllCetificateErrors, isIgnoreMethodsAnnotatedWithInjectDuringConfigurationsTweaking, isSetSecureFalseOnCookiesFromBag, OPTIONS, OPTIONS, OPTIONS, parseDate, PATCH, PATCH, PATCH, POST, POST, POST, PUT, PUT, PUT, saveResponseCookies, stopServer, TRACE, TRACE, TRACE, tweakConfigurations, validateCreatedInjector, websocket, websocket, websocket

    Methods inherited from class org.spincast.testing.core.SpincastTestBase

    addExtraSystemProperties, afterClassLoops, afterTest, beforeClassException, createGuiceTweaker, createTestingDir, createTestingFilePath, createTestingFilePath, deleteTestingWritableTempDir, getExtraSystemProperties, getGuiceTweakerFromThreadLocal, getGuiceTweakerPluginsToDisable, getInjector, getSpincastConfig, getTestingWritableTempDir, isTestClassDisabledPostBeforeClass, isTestClassDisabledPreBeforeClass, resetSystemProperties, testFailure

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait