Module org.junitpioneer
Package org.junitpioneer.jupiter.resource
This package contains various classes pertaining to "resources": anything that needs to be injected into
tests and which may need to be started up or torn down. A common example is a temporary directory.
Check out the following types for details on the "temporary directory" extension:
Check out the following types for details on resources in general:
-
Interface Summary Interface Description Resource<T> Resourceis the common interface for "resources", as managed byResourceFactoryimplementations.ResourceFactory<T> ResourceFactoryis the common interface for "resource factories", which are responsible for creatingResources. -
Class Summary Class Description PathDeleter ResourceExtension TemporaryDirectory TemporaryDirectory.TemporaryDirectoryResource -
Enum Summary Enum Description Shared.Scope Scopespecifies how long a shared resource lives. -
Annotation Types Summary Annotation Type Description Dir @Diris a shorthand for@New(TemporaryDirectory.class).New @Newis used to create a new resource.Shared @Sharedis used to create a resource that is shared with multiple tests.