public class SpincastTestingH2ConfigDefault extends Object implements SpincastTestingH2Config
| Constructor and Description |
|---|
SpincastTestingH2ConfigDefault() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCompatibilityMode()
Should a compatibility mode be used by H2?
Be default, "MODE=PostgreSQL" will be
used.
|
String |
getDatabaseName()
The name of the database.
|
String |
getServerHost()
The host on which to start the server.
|
Integer |
getServerPort()
The port on which to start the H2
TCP server.
|
boolean |
isDatabaseToUpper()
Defaults to
false. |
public String getServerHost()
SpincastTestingH2ConfiggetServerHost in interface SpincastTestingH2Configpublic String getDatabaseName()
SpincastTestingH2ConfiggetDatabaseName in interface SpincastTestingH2Configpublic Integer getServerPort()
SpincastTestingH2Confignull
a random free port will be used.
Defaults to 9092.
getServerPort in interface SpincastTestingH2Configpublic String getCompatibilityMode()
SpincastTestingH2ConfiggetCompatibilityMode in interface SpincastTestingH2Confighttp://www.h2database.com/html/features.html#compatibilitypublic boolean isDatabaseToUpper()
SpincastTestingH2Configfalse.isDatabaseToUpper in interface SpincastTestingH2Confighttps://www.h2database.com/javadoc/org/h2/engine/DbSettings.html#DATABASE_TO_UPPERCopyright © 2018. All rights reserved.