@MustBeDocumented
@Retention(value = AnnotationRetention.RUNTIME)
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION])
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 properties

IsolationPolicy

The isolation policy to apply.

Public constructors

Isolation

Added in 1.0.0-alpha03
Isolation(value: IsolationPolicy = IsolationPolicy.AUTOMATIC)

Public properties

value

val value: IsolationPolicy

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