public class SpincastTestingPostgres extends Object implements com.google.inject.Provider<SpincastDataSource>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpincastTestingPostgres(SpincastTestingPostgresConfig spincastTestingPostgresConfig,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearDatabase()
Clears the whole database.
|
SpincastDataSource |
get() |
String |
getDbConnectionString() |
int |
getDbMaxPoolSize() |
String |
getDbName() |
String |
getDbPassword() |
int |
getDbPort() |
String |
getDbUsername() |
protected JdbcUtils |
getJdbcUtils() |
protected com.opentable.db.postgres.embedded.EmbeddedPostgres |
getPg() |
protected SpincastDataSourceFactory |
getSpincastDataSourceFactory() |
protected SpincastTestingPostgresConfig |
getSpincastTestingPostgresConfig() |
void |
init() |
void |
stopPostgres()
Stops Postgres.
|
@Inject public SpincastTestingPostgres(SpincastTestingPostgresConfig spincastTestingPostgresConfig, JdbcUtils jdbcUtils, SpincastDataSourceFactory spincastDataSourceFactory)
protected com.opentable.db.postgres.embedded.EmbeddedPostgres getPg()
protected SpincastTestingPostgresConfig getSpincastTestingPostgresConfig()
protected JdbcUtils getJdbcUtils()
protected SpincastDataSourceFactory getSpincastDataSourceFactory()
@Inject public void init()
public SpincastDataSource get()
get in interface javax.inject.Provider<SpincastDataSource>public String getDbConnectionString()
public int getDbPort()
public String getDbName()
public String getDbUsername()
public String getDbPassword()
public int getDbMaxPoolSize()
public void stopPostgres()
public void clearDatabase()
Copyright © 2019. All rights reserved.