Package org.spincast.testing.core.h2
Class SpincastTestingH2
java.lang.Object
org.spincast.testing.core.h2.SpincastTestingH2
- All Implemented Interfaces:
com.google.inject.Provider<SpincastDataSource>
,javax.inject.Provider<SpincastDataSource>
public class SpincastTestingH2
extends Object
implements com.google.inject.Provider<SpincastDataSource>
-
Constructor Summary
ConstructorDescriptionSpincastTestingH2
(SpincastTestingH2Config spincastTestingH2Config, JdbcUtils jdbcUtils, SpincastDataSourceFactory spincastDataSourceFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the whole database.protected String
get()
protected org.h2.tools.Server
protected JdbcUtils
protected int
protected SpincastDataSourceFactory
protected SpincastTestingH2Config
void
init()
void
stopH2()
Stops H2
-
Constructor Details
-
SpincastTestingH2
@Inject public SpincastTestingH2(SpincastTestingH2Config spincastTestingH2Config, JdbcUtils jdbcUtils, SpincastDataSourceFactory spincastDataSourceFactory)
-
-
Method Details
-
getH2Server
protected org.h2.tools.Server getH2Server() -
getSpincastTestingH2Config
-
getJdbcUtils
-
getSpincastDataSourceFactory
-
getServerPort
protected int getServerPort() -
init
@Inject public void init() -
createConnectionString
-
get
- Specified by:
get
in interfacecom.google.inject.Provider<SpincastDataSource>
- Specified by:
get
in interfacejavax.inject.Provider<SpincastDataSource>
-
stopH2
public void stopH2()Stops H2 -
clearDatabase
public void clearDatabase()Clears the whole database.
-