Annotation Interface Configuration


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Inherited public @interface Configuration
Additional configuration of config itself.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class path properties config sources to add to configuration of this test class or method.
    Configuration profile.
    boolean
    If set to true, the existing (or default) MicroProfile configuration would be used.
  • Element Details

    • useExisting

      boolean useExisting
      If set to true, the existing (or default) MicroProfile configuration would be used. By default uses a configuration constructed using all AddConfig annotations and configSources(). When set to false and a BeforeClass method registers a custom configuration with ConfigProviderResolver, the result is undefined, though tests have shown that the registered config may be used (as BeforeAll ordering is undefined by JUnit, it may be called after our extension)
      Returns:
      whether to use existing (or default) configuration, or customized one
      Default:
      false
    • configSources

      String[] configSources
      Class path properties config sources to add to configuration of this test class or method.
      Returns:
      config sources to add
      Default:
      {}
    • profile

      String profile
      Configuration profile.
      Returns:
      String with default value "test".
      Default:
      "test"