You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You seem to be overriding the setter for f with setF method declaration, so f = "test2" leads to setF method invocation which doesn't assign a new value to the field. Doesn't look like an issue with this library.
You seem to be overriding the setter for f with setF method declaration, so f = "test2" leads to setF method invocation which doesn't assign a new value to the field. Doesn't look like an issue with this library.
Even if I rename setF to echoF then test fails and echoF under test prints test instead of test2, althought skript works well in jenkins.
Expected Behavior
The tested script correctly handles fields annotated @field in all methods
Actual Behavior
Methods access the wrong instance of the field
Steps to Reproduce
define script :
vars/testFiled.groovy
define test:
Test fails:
Too many invocations for:
1 * getPipelineMock("echo")('test') (2 invocations)
Additional Information
Tested with Java 1.8 and 11 and jenkins-spock.version 2.1.5
Script works as expected in Jenkins
The text was updated successfully, but these errors were encountered: