Class NopLock
java.lang.Object
org.junit.platform.engine.support.hierarchical.NopLock
- All Implemented Interfaces:
AutoCloseable, ResourceLock
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NopLock
private NopLock()
-
-
Method Details
-
getResources
Description copied from interface:ResourceLockReturns the exclusive resources this lock represents.- Specified by:
getResourcesin interfaceResourceLock- Returns:
- the exclusive resources this lock represents
-
acquire
Description copied from interface:ResourceLockAcquire this resource lock, potentially blocking.- Specified by:
acquirein interfaceResourceLock- Returns:
- this lock so it can easily be used in a try-with-resources statement.
-
release
public void release()Description copied from interface:ResourceLockRelease this resource lock.- Specified by:
releasein interfaceResourceLock
-
isExclusive
public boolean isExclusive()Description copied from interface:ResourceLockReturns whether this lock requires exclusiveness.- Specified by:
isExclusivein interfaceResourceLock- Returns:
- whether this lock requires exclusiveness
-
toString
-