@Beta
@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface AutoAttach
DetachedMockFactory
to a Specification.
This can be used if there is no explicit framework support for attaching detached mocks.
It does not work for static
or @Shared
fields.
If you are using the Spring Framework, then use spock-spring extension instead.