Annotation Type DbUnitReplacements
-
@Retention(RUNTIME) @Documented @Target(TYPE) @Inherited public @interface DbUnitReplacements
Annotation that define the list ofReplacements
to use during test suite. These replacements are created by givenproviders()
(note that these providers must have an empty public constructor).
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends ReplacementsProvider>[]
providers
The list of providers to use.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
inherit
A flag indicating if given annotation should be merged with "parent" annotations.
-
-
-
Element Detail
-
providers
Class<? extends ReplacementsProvider>[] providers
The list of providers to use.- Returns:
- List of providers.
-
-
-
inherit
boolean inherit
A flag indicating if given annotation should be merged with "parent" annotations. For example, a method can define additional replacements providers to load. The default value isfalse
, this means that the providers for the annotated class will shadow and effectively replace any datasets defined by superclasses. Iftrue
, this means that an annotated class will inherit the datasets defined by test superclasses (or meta-annotations).- Returns:
- The inherit flag value.
- Default:
- false
-
-