Top Description Fields Constructors Methods
org.junit.jupiter.api.parallel

public final Enum ResourceLockTarget

extends Enum<ResourceLockTarget>
Class Inheritance
Annotations
@API
status:MAINTAINED
since:5.13.3
Static Imports
org.apiguardian.api.API.Status.MAINTAINED

ResourceLockTarget is used to define the target of a shared resource.
Since
5.12
See Also
ResourceLock#target()

Field Summary

Modifier and TypeField and Description
public static final ResourceLockTarget
CHILDREN

Add a shared resource to the direct children of the current node.

public static final ResourceLockTarget
SELF

Add a shared resource to the current node.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ResourceLockTarget
public static ResourceLockTarget[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CHILDRENback to summary
public static final ResourceLockTarget CHILDREN

Add a shared resource to the direct children of the current node.

Examples of "parent - child" relationships in the context of ResourceLockTarget:

  • test class: test methods and nested test classes declared in the test class are children of the test class.
  • nested test class: test methods and nested test classes declared in the nested class are children of the nested test class.
  • test method: test methods are not considered to have children. Using CHILDREN for a test method results in an exception.
SELFback to summary
public static final ResourceLockTarget SELF

Add a shared resource to the current node.

Constructor Detail

ResourceLockTargetback to summary
private ResourceLockTarget()

Method Detail

valueOfback to summary
public static ResourceLockTarget valueOf(String name)
valuesback to summary
public static ResourceLockTarget[] values()