Class SpincastTestingPostgresConfigDefault
java.lang.Object
org.spincast.testing.core.postgres.SpincastTestingPostgresConfigDefault
- All Implemented Interfaces:
SpincastTestingPostgresConfig
public class SpincastTestingPostgresConfigDefault
extends Object
implements SpincastTestingPostgresConfig
-
Constructor Summary
ConstructorDescriptionSpincastTestingPostgresConfigDefault
(File dataDir, SpincastUtils spincastUtils) -
Method Summary
Modifier and TypeMethodDescriptionint
The port to use.protected SpincastUtils
boolean
Will reset the "public" schema if it exists at startup.
-
Constructor Details
-
SpincastTestingPostgresConfigDefault
@Inject public SpincastTestingPostgresConfigDefault(@Nullable File dataDir, SpincastUtils spincastUtils)
-
-
Method Details
-
getSpincastUtils
-
getDataTempDir
- Specified by:
getDataTempDir
in interfaceSpincastTestingPostgresConfig
-
getPortToUse
public int getPortToUse()Description copied from interface:SpincastTestingPostgresConfig
The port to use.By default, a random free port is picked.
- Specified by:
getPortToUse
in interfaceSpincastTestingPostgresConfig
-
isResetSchemaOnInit
public boolean isResetSchemaOnInit()Description copied from interface:SpincastTestingPostgresConfig
Will reset the "public" schema if it exists at startup.- Specified by:
isResetSchemaOnInit
in interfaceSpincastTestingPostgresConfig
-