TestFiles

interface TestFiles

Helper that creates test files and directories for use in tests. The helper manages a directory structure that reflects the structure of the tests. Created files and directories will reside in the part of the directory structure that corresponds to the current test scope. The helper also manages when to delete the created files.

See also

Functions

createDirectory
Link copied to clipboard
abstract fun createDirectory(name: String? = null, delete: DeletionMode = IfSuccessful): Path
Creates a test directory in the directory of the current test scope.
createFile
Link copied to clipboard
abstract fun createFile(name: String? = null, delete: DeletionMode = IfSuccessful): Path
Creates a test file in the directory of the current test scope.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Inheritors

DefaultTestFiles
Link copied to clipboard

Sources

(source)
Link copied to clipboard