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.ParentDirProviderParentDirProvidercan be used to configure a custom parent directory for all temporary directories created by theTempDirectoryextension this is used with.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.Pathget(TempDirectory.TempDirContext tempDirContext, ExtensionContext extensionContext)Get the parent directory for all temporary directories created by theTempDirectoryextension this is used with.
-
-
-
Method Detail
-
get
java.nio.file.Path get(TempDirectory.TempDirContext tempDirContext, ExtensionContext extensionContext) throws java.lang.Exception
Get the parent directory for all temporary directories created by theTempDirectoryextension this is used with.- Parameters:
tempDirContext- the context for the field or parameter for which a temporary directory should be created; nevernullextensionContext- the current extension context; nevernull- Returns:
- the parent directory for all temporary directories; never
null - Throws:
java.lang.Exception
-
-