Annotation Interface Isolated


@API(status=STABLE, since="5.10") @Retention(RUNTIME) @Target(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).

Since:
5.7
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The reason this test class needs to run in isolation.
  • Element Details

    • value

      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.

      Default:
      ""