Class ResourceLocksProvider.Lock

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

public static final class ResourceLocksProvider.Lock extends Object
Lock represents a shared resource.

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

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