Package org.spincast.testing.core.h2
Class SpincastTestingH2ConfigDefault
java.lang.Object
org.spincast.testing.core.h2.SpincastTestingH2ConfigDefault
- All Implemented Interfaces:
SpincastTestingH2Config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionShould a compatibility mode be used by H2? Be default, "MODE=PostgreSQL" will be used.The name of the database.The host on which to start the server.The port on which to start the H2 TCP server.boolean
Defaults tofalse
.
-
Constructor Details
-
SpincastTestingH2ConfigDefault
public SpincastTestingH2ConfigDefault()
-
-
Method Details
-
getServerHost
Description copied from interface:SpincastTestingH2Config
The host on which to start the server. Should probably be "localhost".- Specified by:
getServerHost
in interfaceSpincastTestingH2Config
-
getDatabaseName
Description copied from interface:SpincastTestingH2Config
The name of the database. Defaults to "test".- Specified by:
getDatabaseName
in interfaceSpincastTestingH2Config
-
getServerPort
Description copied from interface:SpincastTestingH2Config
The port on which to start the H2 TCP server. Ifnull
a random free port will be used.Defaults to 9092.
- Specified by:
getServerPort
in interfaceSpincastTestingH2Config
-
getCompatibilityMode
Description copied from interface:SpincastTestingH2Config
Should a compatibility mode be used by H2? Be default, "MODE=PostgreSQL" will be used.- Specified by:
getCompatibilityMode
in interfaceSpincastTestingH2Config
-
isDatabaseToUpper
public boolean isDatabaseToUpper()Description copied from interface:SpincastTestingH2Config
Defaults tofalse
.- Specified by:
isDatabaseToUpper
in interfaceSpincastTestingH2Config
-