@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface ConfineMetaClassChanges
If a spec class is annotated, the meta classes are restored to as they were before setupSpec() was executed, after cleanupSpec was executed.
If a feature method is annotated, the meta classes are restored to as they were after setup() was executed, before cleanup() is executed. For a data-driven feature method, meta classes are restored after each iteration.
Modifier and Type | Required Element | Description |
---|---|---|
java.lang.Class<?>[] |
value |
The classes whose meta class changes are to be confined.
|