Annotation Type TestDataFactory

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Immutable immutable
      The immutability mode of the test data loader - set to Immutable.IMMUTABLE to get caching
      FileTypeLoader[] loaders
      Specific loaders to use to load items - each is an annotation describing how a file is loaded
      String[] path
      The directoris beneath the root - usually we only customise one of these
      String[] root
      The 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 to Immutable.IMMUTABLE to 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:
        {}