@MustBeDocumented
@Retention(value = AnnotationRetention.RUNTIME)
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION])
public annotation Isolation


Annotation to override the default automatic clear data behavior of the framework.

Apply this to a test class or test method to configure the sandbox isolation. An annotation on a test method takes precedence over one on its class, and an annotation on a class also applies to its @Nested test classes.

A controller that a test class constructor or a @BeforeAll method receives follows the annotation of the class, and IsolationPolicy.AUTOMATIC clears the app data when the constructor or method receives it.

Summary

Public constructors

Public methods

final @NonNull IsolationPolicy

The isolation policy to apply.

Public constructors

Isolation

Added in 1.0.0-alpha03
public Isolation(@NonNull IsolationPolicy value)

Public methods

getValue

public final @NonNull IsolationPolicy getValue()

The isolation policy to apply. Defaults to IsolationPolicy.AUTOMATIC.