Class WithSampleDataLoaded.SampleLoaderBuilder

java.lang.Object
fr.ght1pc9kc.testy.jooq.WithSampleDataLoaded.SampleLoaderBuilder
Enclosing class:
WithSampleDataLoaded

public static class WithSampleDataLoaded.SampleLoaderBuilder extends Object
  • Method Details

    • addDataset

      public <T extends org.jooq.TableRecord<T>> WithSampleDataLoaded.SampleLoaderBuilder addDataset(RelationalDataSet<T> dataset)
    • createTablesIfNotExists

      public WithSampleDataLoaded.SampleLoaderBuilder 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

      public WithSampleDataLoaded build()