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

public @Interface Isolated

extends Annotation
Annotations
@API
status:STABLE
since:5.10
@Retention:RUNTIME
@Target:TYPE
@Inherited
@ResourceLock:GLOBAL_KEY
Static Imports
org.apiguardian.api.API.Status.STABLE

@Isolated is used to declare that the annotated test class should be executed in isolation from other test classes.

When a test class is run in isolation, no other test class is executed concurrently. This can be used to enable parallel test execution for the entire test suite while running some tests in isolation (e.g. if they modify some global resource).

Since
5.7
See Also
ExecutionMode, ResourceLock

Method Summary

Modifier and TypeMethod and Description
public String
value()

The reason this test class needs to run in isolation.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The reason this test class needs to run in isolation.

The supplied string is currently not reported in any way but can be used for documentation purposes.