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