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 Details

  • Method Details

    • getH2Server

      protected org.h2.tools.Server getH2Server()
    • getSpincastTestingH2Config

      protected SpincastTestingH2Config getSpincastTestingH2Config()
    • getJdbcUtils

      protected JdbcUtils getJdbcUtils()
    • getSpincastDataSourceFactory

      protected SpincastDataSourceFactory getSpincastDataSourceFactory()
    • getServerPort

      protected int getServerPort()
    • init

      @Inject public void init()
    • createConnectionString

      protected String createConnectionString()
    • get

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

      public void stopH2()
      Stops H2
    • clearDatabase

      public void clearDatabase()
      Clears the whole database.