Top Description Fields Constructors Methods
org.junit.platform.engine.support.hierarchical

pack-priv Class NopLock

extends Object
implements ResourceLock
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.support.hierarchical.ResourceLock, java.lang.AutoCloseable
Static Imports
java.util.Collections.emptyList

No-op ResourceLock implementation.
Since
1.3

Field Summary

Modifier and TypeField and Description
pack-priv static final ResourceLock

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ResourceLock
acquire()

Implements org.junit.platform.engine.support.hierarchical.ResourceLock.acquire.

Acquire this resource lock, potentially blocking.

public List<ExclusiveResource>
getResources()

Implements org.junit.platform.engine.support.hierarchical.ResourceLock.getResources.

Returns the exclusive resources this lock represents.

public boolean
isExclusive()

Implements org.junit.platform.engine.support.hierarchical.ResourceLock.isExclusive.

Returns whether this lock requires exclusiveness.

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ResourceLock INSTANCE

Constructor Detail

NopLockback to summary
private NopLock()

Method Detail

acquireback to summary
public ResourceLock acquire()

Implements org.junit.platform.engine.support.hierarchical.ResourceLock.acquire.

Doc from org.junit.platform.engine.support.hierarchical.ResourceLock.acquire.

Acquire this resource lock, potentially blocking.

Annotations
@Override
getResourcesback to summary
public List<ExclusiveResource> getResources()

Implements org.junit.platform.engine.support.hierarchical.ResourceLock.getResources.

Doc from org.junit.platform.engine.support.hierarchical.ResourceLock.getResources.

Returns the exclusive resources this lock represents.

Annotations
@Override
isExclusiveback to summary
public boolean isExclusive()

Implements org.junit.platform.engine.support.hierarchical.ResourceLock.isExclusive.

Doc from org.junit.platform.engine.support.hierarchical.ResourceLock.isExclusive.

Returns whether this lock requires exclusiveness.

Annotations
@Override
releaseback to summary
public void release()

Implements org.junit.platform.engine.support.hierarchical.ResourceLock.release.

Doc from org.junit.platform.engine.support.hierarchical.ResourceLock.release.

Release this resource lock.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override