-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError: getMemberClassList(org.codehaus.groovy.ast.AnnotationNode, java.lang.String) #112
Comments
Ah yeah, it seems I'm not sure if I'm able to upgrade since the Jenkins on which these pipelines are running use Groovy 2.4.12. In order to test them correctly, I should think they'd need to run with the same version. 🤔 |
@GordonJess I will take a look later on. |
@GordonJess released a new version |
I'm trying to use spock-mockable to mock an imported Jenkins class. (The Jenkins pipelines under specification use this class, but I've been unable to stub some of its methods in a nice way due to them being final/private.)
However, once adding the @mockable annotation, the tests fail to compile with a
NoSuchMethodError
. As far as I can see I am using it according to the usage instructions (is a minimum version of groovy needed?). Any suggestions would be much appreciated.Please see the spec and error message below for details.
Version Info:
Spock Specification:
Stack Trace:
The text was updated successfully, but these errors were encountered: