tuweni / org.apache.tuweni.junit / TempDirectoryExtension

TempDirectoryExtension

class TempDirectoryExtension : ParameterResolver, AfterAllCallback (source)

A junit5 extension, that provides a temporary directory for tests. The temporary directory is created for the test suite and injected into any tests with parameters annotated by TempDirectory.

Constructors

<init>

A junit5 extension, that provides a temporary directory for tests. The temporary directory is created for the test suite and injected into any tests with parameters annotated by TempDirectory.

TempDirectoryExtension()

Functions

afterAll

fun afterAll(context: ExtensionContext!): Unit

resolveParameter

fun resolveParameter(parameterContext: ParameterContext!, extensionContext: ExtensionContext!): Any!

supportsParameter

fun supportsParameter(parameterContext: ParameterContext!, extensionContext: ExtensionContext!): Boolean