public.javadoc.org.spincast.testing.core.h2.SpincastTestingH2.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastTestingH2 (org.spincast:spincast-framework 1.0.0 API)
org.spincast.testing.core.h2
Class SpincastTestingH2
- java.lang.Object
-
- org.spincast.testing.core.h2.SpincastTestingH2
-
- All Implemented Interfaces:
- javax.inject.Provider<SpincastDataSource>
public class SpincastTestingH2
extends Object
implements com.google.inject.Provider<SpincastDataSource>
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastTestingH2(SpincastTestingH2Config spincastTestingH2Config,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
void
clearDatabase()
Clears the whole database.
protected String
createConnectionString()
SpincastDataSource
get()
protected org.h2.tools.Server
getH2Server()
protected JdbcUtils
getJdbcUtils()
protected int
getServerPort()
protected SpincastDataSourceFactory
getSpincastDataSourceFactory()
protected SpincastTestingH2Config
getSpincastTestingH2Config()
void
init()
void
stopH2()
Stops H2
-
-
Constructor Detail
-
SpincastTestingH2
@Inject
public SpincastTestingH2(SpincastTestingH2Config spincastTestingH2Config,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory)
-
Method Detail
-
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 javax.inject.Provider<SpincastDataSource>
-
stopH2
public void stopH2()
Stops H2
-
clearDatabase
public void clearDatabase()
Clears the whole database.
Copyright © 2019. All rights reserved.