Class ResourceLocksProvider.Lock

java.lang.Object
org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
Enclosing interface:
ResourceLocksProvider

public static final class ResourceLocksProvider.Lock extends Object

ResourceLocksProvider.Lock represents a shared resource.

Each resource is identified by a key. In addition, the accessMode allows to specify whether a test class or test method requires READ_WRITE or only READ access to the resource.

Since:
5.12
See Also:
API Note:
key and accessMode have the same semantics as ResourceLock.value() and ResourceLock.mode() respectively.