Annotation Type TestDataFactory
-
@ExtendWith(TestDataExtension.class) @Target(TYPE) @Retention(RUNTIME) public @interface TestDataFactory
Can be used as a synonym for@ExtendWith(TestDataExtension.class)allowing the configuration of the Test Data Loader to be set.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ImmutableimmutableThe immutability mode of the test data loader - set toImmutable.IMMUTABLEto get cachingFileTypeLoader[]loadersSpecific loaders to use to load items - each is an annotation describing how a file is loadedString[]pathThe directoris beneath the root - usually we only customise one of theseString[]rootThe root directory - defaults to `src`, `test`, `resources` - provide the path as separate values or values separated by slashes
-
-
-
Element Detail
-
root
String[] root
The root directory - defaults to `src`, `test`, `resources` - provide the path as separate values or values separated by slashes- Returns:
- the root directory configuration
- Default:
- {}
-
-
-
path
String[] path
The directoris beneath the root - usually we only customise one of these- Returns:
- the subdirectories
- Default:
- {}
-
-
-
immutable
Immutable immutable
The immutability mode of the test data loader - set toImmutable.IMMUTABLEto get caching- Returns:
- the immutability mode
- Default:
- uk.org.webcompere.testgadgets.testdatafactory.Immutable.DEFAULT
-
-
-
loaders
FileTypeLoader[] loaders
Specific loaders to use to load items - each is an annotation describing how a file is loaded- Returns:
- the loaders
- Default:
- {}
-
-