Package ru.curs.celestaunit
Class CelestaUnitExtension.Builder
- java.lang.Object
-
- ru.curs.celestaunit.CelestaUnitExtension.Builder
-
- Enclosing class:
- CelestaUnitExtension
public static final class CelestaUnitExtension.Builder extends Object
Builder for CelestaUnitExtension, that allows to override defaults.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CelestaUnitExtension
build()
Generates CelestaUnitExtension with given parameters.CelestaUnitExtension.Builder
withReferentialIntegrity(boolean referentialIntegrity)
Sets referential integrity.CelestaUnitExtension.Builder
withResetSequences(boolean resetSequences)
Resets sequences before each test (true by default).CelestaUnitExtension.Builder
withScorePath(String scorePath)
Sets score path.CelestaUnitExtension.Builder
withTruncateTables(boolean truncateTables)
Sets tables truncation before each test (true by default).
-
-
-
Method Detail
-
withScorePath
public CelestaUnitExtension.Builder withScorePath(String scorePath)
Sets score path.- Parameters:
scorePath
- Score path (maybe relative to project root).
-
withReferentialIntegrity
public CelestaUnitExtension.Builder withReferentialIntegrity(boolean referentialIntegrity)
Sets referential integrity.- Parameters:
referentialIntegrity
- Set to false to disable.
-
withTruncateTables
public CelestaUnitExtension.Builder withTruncateTables(boolean truncateTables)
Sets tables truncation before each test (true by default).- Parameters:
truncateTables
- Set to true to truncateTables each table before each test.
-
withResetSequences
public CelestaUnitExtension.Builder withResetSequences(boolean resetSequences)
Resets sequences before each test (true by default).- Parameters:
resetSequences
- Set to true to reset sequences before each test
-
build
public CelestaUnitExtension build()
Generates CelestaUnitExtension with given parameters.
-
-