Class HierarchicalOutputDirectoryCreator

    • Field Detail

      • FORBIDDEN_CHARS

        private static final java.util.regex.Pattern FORBIDDEN_CHARS
      • rootDirSupplier

        private final java.util.function.Supplier<java.nio.file.Path> rootDirSupplier
      • rootDir

        private volatile java.nio.file.Path rootDir
    • Constructor Detail

      • HierarchicalOutputDirectoryCreator

        HierarchicalOutputDirectoryCreator​(java.util.function.Supplier<java.nio.file.Path> rootDirSupplier)
    • Method Detail

      • createOutputDirectory

        public java.nio.file.Path createOutputDirectory​(TestDescriptor testDescriptor)
                                                 throws java.io.IOException
        Description copied from interface: OutputDirectoryCreator
        Create an output directory for the supplied test descriptor.
        Specified by:
        createOutputDirectory in interface OutputDirectoryCreator
        Parameters:
        testDescriptor - the test descriptor for which to create an output directory; never null
        Returns:
        the output directory
        Throws:
        java.io.IOException - if the output directory could not be created
      • toSanitizedPath

        private static java.nio.file.Path toSanitizedPath​(UniqueId.Segment segment)
      • sanitizeName

        private static java.lang.String sanitizeName​(java.lang.String value)