Class NopLock
java.lang.Object
org.junit.platform.engine.support.hierarchical.NopLock
- All Implemented Interfaces:
AutoCloseable,ResourceLock
No-op
ResourceLock implementation.- Since:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.engine.support.hierarchical.ResourceLock
close
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NopLock
private NopLock()
-
-
Method Details
-
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
-