Annotation Interface WithDatabase


@Target({TYPE,METHOD}) @Retention(RUNTIME) @EnabledIfSystemProperty(named="kc.test.storage.database", matches="true", disabledReason="Docker takes too much time and stability depends on the environment. We should try running these tests in CI but isolated.") public @interface WithDatabase
WithDatabase is used to start a database container.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The database name as per database aliases.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The build options that should be used to build the server prior to starting.
  • Element Details

    • alias

      String alias
      The database name as per database aliases.
    • buildOptions

      String[] buildOptions
      The build options that should be used to build the server prior to starting.
      Default:
      {}