Package org.junit.jupiter.api.support.io
Interface TempDirectory.ParentDirProvider
-
- Enclosing class:
- TempDirectory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface TempDirectory.ParentDirProvider
ParentDirProvider
can be used to configure a custom parent directory for all temporary directories created by theTempDirectory
extension this is used with.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Path
get(TempDirectory.TempDirContext tempDirContext, ExtensionContext extensionContext)
Get the parent directory for all temporary directories created by theTempDirectory
extension this is used with.
-
-
-
Method Detail
-
get
Path get(TempDirectory.TempDirContext tempDirContext, ExtensionContext extensionContext) throws Exception
Get the parent directory for all temporary directories created by theTempDirectory
extension this is used with.- Parameters:
tempDirContext
- the context for the field or parameter for which a temporary directory should be created; nevernull
extensionContext
- the current extension context; nevernull
- Returns:
- the parent directory for all temporary directories; never
null
- Throws:
Exception
-
-