Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addExtraSystemProperties() - Method in class org.spincast.testing.core.SpincastTestBase
-
Adds System properties as they are provided by the
SpincastTestBase.getExtraSystemProperties()method. - afterClass() - Method in class org.spincast.testing.core.AppBasedTestingBase
- afterClass() - Method in class org.spincast.testing.core.SpincastTestBase
- afterClassLoops() - Method in class org.spincast.testing.core.SpincastTestBase
- afterTest() - Method in class org.spincast.testing.core.SpincastTestBase
-
This method will be called after each test.
- AppBasedTestingBase<R extends org.spincast.core.exchange.RequestContext<?>,
W extends org.spincast.core.websocket.WebsocketContext<?>> - Class in org.spincast.testing.core - AppBasedTestingBase() - Constructor for class org.spincast.testing.core.AppBasedTestingBase
- AppTestingConfigs - Interface in org.spincast.testing.core
-
Informations about the configurations to use when testing the application.
B
- beforeClass() - Method in class org.spincast.testing.core.AppBasedTestingBase
- beforeClass() - Method in class org.spincast.testing.core.SpincastTestBase
- beforeClassException(Throwable) - Method in class org.spincast.testing.core.SpincastTestBase
- beforeTest() - Method in class org.spincast.testing.core.SpincastTestBase
-
This method will be called before each test.
C
- callAppMainMethod() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts the application.
- check() - Method in interface org.spincast.testing.core.utils.TrueChecker
- clearDatabase() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
-
Clears the whole database.
- clearDatabase() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
-
Clears the whole database.
- clearPreviousResponseCookies() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Removes all the cookies saved from a previous response.
- CONNECT(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a CONNECT method.
- CONNECT(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a CONNECT method.
- CONNECT(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a CONNECT method.
- createConnectionString() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- createGuiceTweaker() - Method in class org.spincast.testing.core.SpincastTestBase
- createInjector() - Method in class org.spincast.testing.core.AppBasedTestingBase
- createInjector() - Method in class org.spincast.testing.core.SpincastTestBase
-
The test class must implement this method to create the Guice injector.
- createTestingDir() - Method in class org.spincast.testing.core.SpincastTestBase
-
Create a temp directory.
- createTestingFilePath() - Method in class org.spincast.testing.core.SpincastTestBase
-
Returns a unique path to use to create a temporary test file.
- createTestingFilePath(String) - Method in class org.spincast.testing.core.SpincastTestBase
-
Returns the absolute path to use, given the relative one, to create a temporary test file.
- createTestUrl(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Creates an URL to the started HTTPS server.
- createTestUrl(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Creates an URL to the started HTTP(S) server.
- createTestUrl(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Creates an URL to the started HTTP(S) server.
- createTestUrl(String, String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
D
- DELETE(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a DELETE method.
- DELETE(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a DELETE method.
- DELETE(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a DELETE method.
- deleteTestingWritableTempDir() - Method in class org.spincast.testing.core.SpincastTestBase
-
Deletes the testing writable temp directory.
- dummyRouteHandler - Static variable in class org.spincast.testing.core.utils.SpincastTestingUtils
F
- findFreePort() - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
Finds a free port.
- formatDate(Date) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Format a date so it can be used in a HTTP header.
G
- generateTempClassFile(File) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
- get() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- get() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- GET(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a GET method.
- GET(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a GET method.
- GET(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a GET method.
- getAppConfigInterface() - Method in interface org.spincast.testing.core.AppTestingConfigs
-
Your application configuration interface.
- getAppConfigTestingImplementationClass() - Method in interface org.spincast.testing.core.AppTestingConfigs
-
The implementation class to use for your application configuration binding.
- getAppTestingConfigs() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
We force test classes to provide information about the required testing configurations.
- getClasspathFileNotInJar(String) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
Gets a File from a classpath path (only works when the application si not running from an executable .jar).
- getCompatibilityMode() - Method in interface org.spincast.testing.core.h2.SpincastTestingH2Config
-
Should a compatibility mode be used by H2? Be default, "MODE=PostgreSQL" will be used.
- getCompatibilityMode() - Method in class org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
- getCookieFactory() - Method in class org.spincast.testing.core.AppBasedTestingBase
- getDatabaseName() - Method in interface org.spincast.testing.core.h2.SpincastTestingH2Config
-
The name of the database.
- getDatabaseName() - Method in class org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
- getDataTempDir() - Method in interface org.spincast.testing.core.postgres.SpincastTestingPostgresConfig
- getDataTempDir() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgresConfigDefault
- getDbConnectionString() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getDbMaxPoolSize() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getDbName() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getDbPassword() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getDbPort() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getDbUsername() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getDictionaryEntryNotFoundBehavior() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getExtraExactBindingsToRemoveBeforePlugins() - Method in class org.spincast.testing.core.AppBasedTestingBase
- getExtraExactBindingsToRemoveBeforePlugins() - Method in class org.spincast.testing.core.SpincastTestBase
-
Extra exact bindings to remvoe before the plugins are applied.
- getExtraOverridingModule() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Can be overriden with something like :
- getExtraPlugins() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
The extra required plugins.
- getExtraSystemProperties() - Method in class org.spincast.testing.core.SpincastTestBase
-
Extra System properties to set before the tests are run.
- getGuiceTweakerExtraOverridingModule() - Method in class org.spincast.testing.core.AppBasedTestingBase
- getGuiceTweakerExtraOverridingModule() - Method in class org.spincast.testing.core.SpincastTestBase
-
If an overriding Module is to be added using the Guice tweaker.
- getGuiceTweakerExtraPlugins() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
The extra required plugins.
- getGuiceTweakerExtraPlugins() - Method in class org.spincast.testing.core.SpincastTestBase
-
Extra plugins to be added by the Guice Tweaker.
- getGuiceTweakerFromThreadLocal() - Method in class org.spincast.testing.core.SpincastTestBase
- getGuiceTweakerPluginsToDisable() - Method in class org.spincast.testing.core.SpincastTestBase
-
Ids of plugins to disable.
- getH2Server() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- getHttpClient() - Method in class org.spincast.testing.core.AppBasedTestingBase
- getHttpServerPort() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getHttpsKeyStoreKeyPass() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getHttpsKeyStorePath() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getHttpsKeyStoreStorePass() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getHttpsKeyStoreType() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getHttpsServerPort() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getInjector() - Method in class org.spincast.testing.core.SpincastTestBase
-
Returns the Guice injector.
- getJdbcUtils() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- getJdbcUtils() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getPg() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getPortToUse() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getPortToUse() - Method in interface org.spincast.testing.core.postgres.SpincastTestingPostgresConfig
-
The port to use.
- getPortToUse() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgresConfigDefault
- getPreviousResponseCookie(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
- getPreviousResponseCookies() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
The
Cookies returned by the previousHttpResponse. - getPublicUrlBase() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getRouter() - Method in class org.spincast.testing.core.AppBasedTestingBase
- getServer() - Method in class org.spincast.testing.core.AppBasedTestingBase
- getServerHost() - Method in interface org.spincast.testing.core.h2.SpincastTestingH2Config
-
The host on which to start the server.
- getServerHost() - Method in class org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
- getServerHost() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- getServerPort() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- getServerPort() - Method in interface org.spincast.testing.core.h2.SpincastTestingH2Config
-
The port on which to start the H2 TCP server.
- getServerPort() - Method in class org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
- getSpincastConfig() - Method in class org.spincast.testing.core.SpincastTestBase
- getSpincastConfigTestingImplementationClass() - Method in interface org.spincast.testing.core.AppTestingConfigs
-
The implementation class to use for the
SpincastConfigbinding. - getSpincastDataSourceFactory() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- getSpincastDataSourceFactory() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getSpincastTestingH2Config() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- getSpincastTestingPostgresConfig() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- getSpincastUtils() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgresConfigDefault
- getTestDateNoTime() - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
Get a test date without time.
- getTestingConfigImplementationClass() - Method in class org.spincast.testing.core.AppBasedTestingBase
- getTestingConfigImplementationClass() - Method in class org.spincast.testing.core.SpincastTestBase
-
The implementation to use for the
SpincastConfigbinding, when running tests. - getTestingWritableTempDir() - Method in class org.spincast.testing.core.SpincastTestBase
-
Returns the directory that can be used to create files and subdirectories during testing.
- getThisClassFileInputStream() - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
H
- HEAD(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a HEAD method.
- HEAD(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a HEAD method.
- HEAD(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a HEAD method.
I
- init() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
- init() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- isBindAppClass() - Method in interface org.spincast.testing.core.AppTestingConfigs
-
Should the App class itself (the clas in which
Spincast.init()orSpincast.configure()is called) be bound? - isDatabaseToUpper() - Method in interface org.spincast.testing.core.h2.SpincastTestingH2Config
-
Defaults to
false. - isDatabaseToUpper() - Method in class org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
- isDevelopmentMode() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
-
We do not run in "debug" mode.
- isDisableBindCurrentClass() - Method in class org.spincast.testing.core.AppBasedTestingBase
- isDisableBindCurrentClass() - Method in class org.spincast.testing.core.SpincastTestBase
- isDisableSllCetificateErrors() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
By default, for the tests, by disable the SSL certificate errors.
- isEnableCookiesValidator() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
- isIgnoreMethodsAnnotatedWithInjectDuringConfigurationsTweaking() - Method in class org.spincast.testing.core.AppBasedTestingBase
- isLogCredentials() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- isPortAvailable(String, int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
Is the specified port available? Note that this will be true at the time the method run, but may be false a couple of milliseconds after...
- isResetSchemaOnInit() - Method in interface org.spincast.testing.core.postgres.SpincastTestingPostgresConfig
-
Will reset the "public" schema if it exists at startup.
- isResetSchemaOnInit() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgresConfigDefault
- isSetSecureFalseOnCookiesFromBag() - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Will set
Cookie.setSecure(boolean)tofalseon cookies added to theAppBasedTestingBase.getPreviousResponseCookies()so their can be resend in tests file using HTTP (not HTTPS). - isTestClassDisabledPostBeforeClass() - Method in class org.spincast.testing.core.SpincastTestBase
- isTestClassDisabledPreBeforeClass(Collection<FrameworkMethod>) - Method in class org.spincast.testing.core.SpincastTestBase
- isValidateLocalhostHost() - Method in class org.spincast.testing.core.utils.SpincastConfigTestingDefault
L
- logException(String, Exception, String) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
This method can be called to log some information about an exception wihch is hard to debug.
- logger - Static variable in class org.spincast.testing.core.postgres.SpincastTestingPostgres
- logger - Static variable in class org.spincast.testing.core.SpincastTestBase
O
- OPTIONS(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a OPTIONS method.
- OPTIONS(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a OPTIONS method.
- OPTIONS(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a OPTIONS method.
- org.spincast.testing.core - package org.spincast.testing.core
- org.spincast.testing.core.h2 - package org.spincast.testing.core.h2
- org.spincast.testing.core.postgres - package org.spincast.testing.core.postgres
- org.spincast.testing.core.utils - package org.spincast.testing.core.utils
P
- parseDate(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Parse a date from a HTTP header to a Date object.
- PATCH(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a PATCH method.
- PATCH(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a PATCH method.
- PATCH(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a PATCH method.
- POST(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a POST method.
- POST(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a POST method.
- POST(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a POST method.
- PostgresDataDir - Annotation Interface in org.spincast.testing.core.postgres
- PUT(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a PUT method.
- PUT(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a PUT method.
- PUT(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a PUT method.
R
- resetSystemProperties() - Method in class org.spincast.testing.core.SpincastTestBase
-
Resets System properties.
S
- saveResponseCookies(HttpResponse) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Saves the current response's cookies.
- spincastConfig - Variable in class org.spincast.testing.core.SpincastTestBase
- SpincastConfigTestingDefault - Class in org.spincast.testing.core.utils
-
Default configurations for Spincast integration testing.
- SpincastConfigTestingDefault(SpincastConfigPluginConfig, boolean) - Constructor for class org.spincast.testing.core.utils.SpincastConfigTestingDefault
-
Constructor
- SpincastTestBase - Class in org.spincast.testing.core
-
Base class for Spincast test classes.
- SpincastTestBase() - Constructor for class org.spincast.testing.core.SpincastTestBase
- SpincastTestingH2 - Class in org.spincast.testing.core.h2
- SpincastTestingH2(SpincastTestingH2Config, JdbcUtils, SpincastDataSourceFactory) - Constructor for class org.spincast.testing.core.h2.SpincastTestingH2
- SpincastTestingH2Config - Interface in org.spincast.testing.core.h2
- SpincastTestingH2ConfigDefault - Class in org.spincast.testing.core.h2
- SpincastTestingH2ConfigDefault() - Constructor for class org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
- SpincastTestingPostgres - Class in org.spincast.testing.core.postgres
- SpincastTestingPostgres(SpincastTestingPostgresConfig, JdbcUtils, SpincastDataSourceFactory) - Constructor for class org.spincast.testing.core.postgres.SpincastTestingPostgres
- SpincastTestingPostgresConfig - Interface in org.spincast.testing.core.postgres
- SpincastTestingPostgresConfigDefault - Class in org.spincast.testing.core.postgres
- SpincastTestingPostgresConfigDefault(File, SpincastUtils) - Constructor for class org.spincast.testing.core.postgres.SpincastTestingPostgresConfigDefault
- SpincastTestingUtils - Class in org.spincast.testing.core.utils
-
Spincast testing utilities.
- SpincastTestingUtils() - Constructor for class org.spincast.testing.core.utils.SpincastTestingUtils
- stopH2() - Method in class org.spincast.testing.core.h2.SpincastTestingH2
-
Stops H2
- stopPostgres() - Method in class org.spincast.testing.core.postgres.SpincastTestingPostgres
-
Stops Postgres.
- stopServer() - Method in class org.spincast.testing.core.AppBasedTestingBase
T
- TEST_STRING - Static variable in class org.spincast.testing.core.utils.SpincastTestingUtils
- TEST_STRING_LONG - Static variable in class org.spincast.testing.core.utils.SpincastTestingUtils
- testFailure(Failure) - Method in class org.spincast.testing.core.SpincastTestBase
-
You can override this method to be informed when a test fails.
- TRACE(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a TRACE method.
- TRACE(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Https Client builder for a TRACE method.
- TRACE(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Starts an Http(s) Client builder for a TRACE method.
- TrueChecker - Interface in org.spincast.testing.core.utils
-
Interface for a true checker.
- tweakConfigurations(GuiceTweaker) - Method in class org.spincast.testing.core.AppBasedTestingBase
-
Since an App is used, it will probably use it own AppConfig interface for the config.
- tweakConfigurations(GuiceTweaker) - Method in class org.spincast.testing.core.SpincastTestBase
V
- validateCreatedInjector(Injector) - Method in class org.spincast.testing.core.AppBasedTestingBase
- validateCreatedInjector(Injector) - Method in class org.spincast.testing.core.SpincastTestBase
-
Validates the created Injector, before the dependencies are injected in the test class.
W
- waitForMaxSize(Collection<?>, int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
This method checks frequently if the size of the specified collection is under the speficied max size.
- waitForMaxSize(Collection<?>, int, int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
This method checks frequently if the size of the specified collection is under the speficied max size.
- waitForNumber(int[], int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
This method checks frequently if the number of the first element of the specified int[] has reached the expected value.
- waitForNumber(int[], int, int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
This method checks frequently if the number of the first element of the specified int[] has reached the expected value.
- waitForSize(Collection<?>, int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
This method checks frequently if the size of the specified collection has reached the expected size.
- waitForSize(Collection<?>, int, int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
This method checks frequently if the size of the specified collection has reached the expected size.
- waitForTrue(TrueChecker) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
Since Websockets are async, it's hard to wait for a specific period of time before validating if an event occured.
- waitForTrue(TrueChecker, int) - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
-
Since Websockets are async, it's hard to wait for a specific period of time before validating if an event occured.
- waitForTrueLoopInterval() - Static method in class org.spincast.testing.core.utils.SpincastTestingUtils
- websocket(String) - Method in class org.spincast.testing.core.AppBasedTestingBase
- websocket(String, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
- websocket(String, boolean, boolean) - Method in class org.spincast.testing.core.AppBasedTestingBase
All Classes and Interfaces|All Packages|Constant Field Values