Annotation Interface EnsureCleanDb


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface EnsureCleanDb
Annotation that instructs the internal flowable extensions to assert a clean DB (scans all tables to see if the DB is completely clean). It throws AssertionError in case the DB is not clean. If the DB is not clean, it would be cleaned by performing a create and drop. Dropping the DB can be disabled by setting dropDb() to false. If the TestInstance.Lifecycle is set to TestInstance.Lifecycle#PER_CLASS then the assertion will happen after all tests have run.
Author:
Filip Hrisafov
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    The names of the tables that should be excluded from a check
  • Element Details

    • excludeTables

      String[] excludeTables
      The names of the tables that should be excluded from a check
      Returns:
      the table names that should be excluded when doing the check
      Default:
      {}
    • dropDb

      boolean dropDb
      Default:
      true