Class PlatformDBTestingHelper
- java.lang.Object
-
- org.killbill.billing.platform.test.PlatformDBTestingHelper
-
public class PlatformDBTestingHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.killbill.commons.embeddeddb.EmbeddedDBinstance
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlatformDBTestingHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteEngineSpecificScripts()protected voidexecutePostStartupScripts()protected voidexecutePostStartupScripts(String resourcesBase)static PlatformDBTestingHelperget()DataSourcegetDataSource()org.skife.jdbi.v2.IDBIgetDBI()org.killbill.commons.embeddeddb.EmbeddedDBgetInstance()voidstart()protected StringstreamToString(InputStream inputStream)
-
-
-
Method Detail
-
get
public static PlatformDBTestingHelper get()
-
getInstance
public org.killbill.commons.embeddeddb.EmbeddedDB getInstance()
-
getDBI
public org.skife.jdbi.v2.IDBI getDBI()
-
getDataSource
public DataSource getDataSource()
-
start
public void start() throws IOException, SQLException- Throws:
IOExceptionSQLException
-
executePostStartupScripts
protected void executePostStartupScripts() throws IOException- Throws:
IOException
-
executePostStartupScripts
protected void executePostStartupScripts(String resourcesBase) throws IOException
- Throws:
IOException
-
executeEngineSpecificScripts
protected void executeEngineSpecificScripts() throws IOException, SQLException- Throws:
IOExceptionSQLException
-
streamToString
protected String streamToString(InputStream inputStream) throws IOException
- Throws:
IOException
-
-