Package fr.ght1pc9kc.testy.jooq
Class WithSampleDataLoaded.SampleLoaderBuilder
java.lang.Object
fr.ght1pc9kc.testy.jooq.WithSampleDataLoaded.SampleLoaderBuilder
- Enclosing class:
- WithSampleDataLoaded
-
Method Summary
Modifier and TypeMethodDescription<T extends org.jooq.TableRecord<T>>
WithSampleDataLoaded.SampleLoaderBuilderaddDataset
(RelationalDataSet<T> dataset) build()
With this option, the tables corresponding to the sample records will be created if they do not exist.
-
Method Details
-
addDataset
public <T extends org.jooq.TableRecord<T>> WithSampleDataLoaded.SampleLoaderBuilder addDataset(RelationalDataSet<T> dataset) -
createTablesIfNotExists
With this option, the tables corresponding to the sample records will be created if they do not exist.This avoids having to load the complete database schema and can speed up the tests significantly.
However, since the schema is not loaded, not all the data it contains is loaded either, which can cause unexpected behavior.
By default, the tables was never created.
- Returns:
- the builder instance
-
build
-