Class OutputDir
java.lang.Object
org.junit.platform.launcher.listeners.OutputDir
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
containsFilesWithExtensions
(Path dir, String... extensions) Determine if the supplied directory contains files with any of the supplied extensions.static OutputDir
createFile
(String prefix, String extension) (package private) static OutputDir
createSafely
(Optional<String> customDir, Supplier<Path> currentWorkingDir) Package private for testing purposes.toPath()
-
Field Details
-
path
-
-
Constructor Details
-
OutputDir
-
-
Method Details
-
create
-
createSafely
static OutputDir createSafely(Optional<String> customDir, Supplier<Path> currentWorkingDir) throws IOException Package private for testing purposes.- Throws:
IOException
-
toPath
-
createFile
- Throws:
UncheckedIOException
-
containsFilesWithExtensions
private static boolean containsFilesWithExtensions(Path dir, String... extensions) throws IOException Determine if the supplied directory contains files with any of the supplied extensions.- Throws:
IOException
-