Annotation Interface KeepOriginal
If a class annotated with
TargetClass is also annotated with Substitute, all
non-substituted methods in that class are by default treated as deleted. This
annotation changes the behavior: A method annotated with KeepOriginal keeps the original
definition of the method.
If this annotation is used to the * substituted type itself, then the original
definition of all methods and fields in the target type are kept by default.
The element can also be annotated with TargetElement to specify additional properties.
See TargetClass for an overview of the annotation system.
- Since:
- 22.3