Annotation Type 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
      String alias
      The database name as per database aliases.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] buildOptions
      The build options that should be used to build the server prior to starting.
    • Element Detail

      • 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:
        {}