public abstract class SpincastGuiceModuleBasedIntegrationTestBase<R extends IRequestContext<?>,W extends IWebsocketContext<?>> extends SpincastIntegrationTestBase<R,W>
| Constructor and Description |
|---|
SpincastGuiceModuleBasedIntegrationTestBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeClass()
Called before the tests of the class are ran.
|
protected void |
beforeStartServer()
Allows some initialization to be run once the Guice context
is created, but before the server is started.
|
void |
beforeTest()
Ran before each test.
|
protected void |
clearRoutes() |
protected com.google.inject.Injector |
createInjector()
The test class must implement this method to create
the Guice injector.
|
protected com.google.inject.Module |
getOverridingModule()
An overriding module to use?
|
abstract com.google.inject.Module |
getTestingModule()
The testing module to use.
|
protected void |
startServer() |
afterClass, CONNECT, CONNECT, CONNECT, createTestUrl, createTestUrl, createTestUrl, DELETE, DELETE, DELETE, GET, GET, GET, getCookieFactory, getHttpClient, getRouter, getServer, getTestOverridingModule, HEAD, HEAD, HEAD, isDisableSllCetificateErrors, OPTIONS, OPTIONS, OPTIONS, PATCH, PATCH, PATCH, POST, POST, POST, PUT, PUT, PUT, stopServer, TRACE, TRACE, TRACE, websocket, websocket, websocketcreateTestingFilePath, createTestingFilePath, deleteTempDir, getInjector, getSpincastConfig, getTestingWritableDir, getTestingWritableDirBasePath, setSpincastConfigpublic SpincastGuiceModuleBasedIntegrationTestBase()
protected com.google.inject.Injector createInjector()
SpincastGuiceBasedTestBasemain(...) method) or by
creating a custom Injector.createInjector in class SpincastGuiceBasedTestBaseprotected com.google.inject.Module getOverridingModule()
public void beforeClass()
IBeforeAfterClassMethodsProviderbeforeClass in interface IBeforeAfterClassMethodsProviderbeforeClass in class SpincastGuiceBasedTestBaseprotected void beforeStartServer()
public void beforeTest()
beforeTest in class SpincastIntegrationTestBase<R extends IRequestContext<?>,W extends IWebsocketContext<?>>protected void startServer()
protected void clearRoutes()
public abstract com.google.inject.Module getTestingModule()
Copyright © 2016. All rights reserved.