public class SpincastTestingH2 extends Object implements com.google.inject.Provider<SpincastDataSource>
| Constructor and Description |
|---|
SpincastTestingH2(SpincastTestingH2Config spincastTestingH2Config,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearDatabase()
Clears the whole database.
|
protected String |
createConnectionString() |
SpincastDataSource |
get() |
protected org.h2.tools.Server |
getH2Server() |
protected JdbcUtils |
getJdbcUtils() |
protected int |
getServerPort() |
protected SpincastDataSourceFactory |
getSpincastDataSourceFactory() |
protected SpincastTestingH2Config |
getSpincastTestingH2Config() |
void |
init() |
void |
stopH2()
Stops H2
|
@Inject public SpincastTestingH2(SpincastTestingH2Config spincastTestingH2Config, JdbcUtils jdbcUtils, SpincastDataSourceFactory spincastDataSourceFactory)
protected org.h2.tools.Server getH2Server()
protected SpincastTestingH2Config getSpincastTestingH2Config()
protected JdbcUtils getJdbcUtils()
protected SpincastDataSourceFactory getSpincastDataSourceFactory()
protected int getServerPort()
@Inject public void init()
protected String createConnectionString()
public SpincastDataSource get()
get in interface javax.inject.Provider<SpincastDataSource>public void stopH2()
public void clearDatabase()
Copyright © 2018. All rights reserved.