public abstract class SpincastGuiceModuleBasedIntegrationTestBase<R extends IRequestContext<?>> extends SpincastIntegrationTestBase<R>
| Constructor and Description |
|---|
SpincastGuiceModuleBasedIntegrationTestBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
before()
Ran before each test.
|
void |
beforeClass() |
protected void |
beforeStartServer()
Allows some initialization to be run once the Guice context
is created, but before the server is started.
|
protected void |
clearRoutes() |
protected com.google.inject.Injector |
createInjector()
The test class must implement this method to create
the Guice injector.
|
abstract com.google.inject.Module |
getTestingModule()
The testing module to use.
|
protected void |
startServer() |
afterClass, clearHttpClientData, createTestUrl, createTestUrl, get, get, get, get, get, get, get, get, getCookieEncoding, getCookieFactory, getCookieStore, getHttpClient, getRawResponse, getRawResponse, getRawResponse, getRawResponse, getRouter, getServer, getWithUrl, getWithUrl, getWithUrl, getWithUrl, methodWithUrl, methodWithUrl, postJson, postStringEntity, postWithHeaders, postWithParams, request, requestRaw, stopServercreateTestingFilePath, 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 SpincastGuiceBasedTestBasepublic void beforeClass()
beforeClass in interface IBeforeAfterClassMethodsProviderbeforeClass in class SpincastGuiceBasedTestBaseprotected void beforeStartServer()
public void before()
before in class SpincastIntegrationTestBase<R extends IRequestContext<?>>protected void startServer()
protected void clearRoutes()
public abstract com.google.inject.Module getTestingModule()
Copyright © 2016. All rights reserved.