public class SpincastTestingPostgres extends Object implements com.google.inject.Provider<SpincastDataSource>
| Constructor and Description |
|---|
SpincastTestingPostgres(SpincastTestingPostgresConfig spincastTestingPostgresConfig,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearDatabase()
Clears the whole database.
|
protected String |
createConnectionString() |
SpincastDataSource |
get() |
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>protected String createConnectionString()
public void stopPostgres()
public void clearDatabase()
Copyright © 2018. All rights reserved.