Class SpincastTestingPostgres

java.lang.Object
org.spincast.testing.core.postgres.SpincastTestingPostgres
All Implemented Interfaces:
com.google.inject.Provider<SpincastDataSource>, javax.inject.Provider<SpincastDataSource>

public class SpincastTestingPostgres extends Object implements com.google.inject.Provider<SpincastDataSource>
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

  • Method Details

    • getPg

      protected com.opentable.db.postgres.embedded.EmbeddedPostgres getPg()
    • getSpincastTestingPostgresConfig

      protected SpincastTestingPostgresConfig getSpincastTestingPostgresConfig()
    • getJdbcUtils

      protected JdbcUtils getJdbcUtils()
    • getSpincastDataSourceFactory

      protected SpincastDataSourceFactory getSpincastDataSourceFactory()
    • init

      @Inject public void init()
    • isLogCredentials

      protected boolean isLogCredentials()
    • getPortToUse

      protected int getPortToUse()
    • get

      public SpincastDataSource get()
      Specified by:
      get in interface com.google.inject.Provider<SpincastDataSource>
      Specified by:
      get in interface javax.inject.Provider<SpincastDataSource>
    • getDbConnectionString

      public String getDbConnectionString()
    • getDbPort

      public int getDbPort()
    • getDbName

      public String getDbName()
    • getDbUsername

      public String getDbUsername()
    • getDbPassword

      public String getDbPassword()
    • getDbMaxPoolSize

      public int getDbMaxPoolSize()
    • stopPostgres

      public void stopPostgres()
      Stops Postgres.
    • clearDatabase

      public void clearDatabase()
      Clears the whole database.