Package ru.iopump.qa.util
Class FileUtil.FilesWatchdog
- java.lang.Object
-
- ru.iopump.qa.util.FileUtil.FilesWatchdog
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- FileUtil
@Beta public static class FileUtil.FilesWatchdog extends java.lang.Object implements java.io.CloseableIt stores all created files and directory. You can get all watched files or remove allclose(). Also you can get all errors after closing. Enable it beforeFileUtil.ENABLE_WATCHDOG. Then get itFileUtil.getFilesWatchdog().
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Delete all files created viaFileUtil.java.util.Collection<java.nio.file.Path>getAll()Get all created files and dirs.java.util.Map<java.nio.file.Path,java.lang.Throwable>getError()Get all errors after closing.
-
-
-
Method Detail
-
close
public void close()
Delete all files created viaFileUtil. Enable it beforeFileUtil.ENABLE_WATCHDOG. Then get itFileUtil.getFilesWatchdog().- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
getError
public java.util.Map<java.nio.file.Path,java.lang.Throwable> getError()
Get all errors after closing. Enable it beforeFileUtil.ENABLE_WATCHDOG. Then get itFileUtil.getFilesWatchdog().
-
getAll
public java.util.Collection<java.nio.file.Path> getAll()
Get all created files and dirs. Enable it beforeFileUtil.ENABLE_WATCHDOG. Then get itFileUtil.getFilesWatchdog().
-
-