Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Annotation to attach detached mock #779
Attaching mock manually is not very practical. It would be nice if Spock has an annotation to attach detached mocks. Here's working implementation I'm using locally:
Which can be used for example within Grails Unit Tests using AutowiredTest annotation:
Grails unit tests are not recognized as Spring tests but I guess there might be other use cases (e.g TCK also providing mocks for implementations).