@API(status=STABLE,
since="5.10")
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface Isolated
@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).
ExecutionMode,
ResourceLock| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
value
The reason this test class needs to run in isolation.
|