Annotation Type AutoAttach
@Beta @Target(FIELD) @Retention(RUNTIME) public @interface AutoAttachAutomatically attaches detached mocks
DetachedMockFactoryto a Specification. This can be used if there is no explicit framework support for attaching detached mocks. It does not work for
@Sharedfields. If you are using the Spring Framework, then use spock-spring extension instead.