Package org.junitpioneer.jupiter.resource
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:
-
ClassDescription
@Diris a shorthand for@New(TemporaryDirectory.class).@Newis used to create a new resource.Resource<T>Resourceis the common interface for "resources", as managed byResourceFactoryimplementations.ResourceFactoryis the common interface for "resource factories", which are responsible for creatingResources.@Sharedis used to create a resource that is shared with multiple tests.Scopespecifies how long a shared resource lives.