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
groovy.lang.MissingMethodException: No signature of method: org.spockframework.mock.runtime.InteractionBuilder.addEqualArg() is applicable for argument types: (java.lang.String, java.lang.String) values: [firstArg, secondArg]
Possible solutions: addEqualArg(java.lang.Object)
Expected behavior
The test should pass.
Actual behavior
Test fails with the following exception:
groovy.lang.MissingMethodException: No signature of method: org.spockframework.mock.runtime.InteractionBuilder.addEqualArg() is applicable for argument types: (java.lang.String, java.lang.String) values: [firstArg, secondArg]
Possible solutions: addEqualArg(java.lang.Object)
Java version
java version "1.8.0_251"
Buildtool version
Gradle 6.5
What operating system are you using
Windows
Dependencies
spock 1.3 - groovy 2.4
Additional context
No response
The text was updated successfully, but these errors were encountered:
Interactions are transformed at compile time and each argument is translated to its own method call, e.g., addEqualArg.
That is why this doesn't work at the moment, since it would have to translate [1, 2] to .addEqualArg(1).addEqualArg(2) instead of .addEqualArg(*args) during runtime. Spock only has special handling for the *_ expression, meaning any arguments.
Describe the bug
Unable to pass spread operator (*) to interaction verification.
To Reproduce
I have a service that is just a wrapper for another class:
I am writing the following test that dynamically verifies all wrapper methods:
But I am getting the following exception:
Expected behavior
The test should pass.
Actual behavior
Test fails with the following exception:
Java version
java version "1.8.0_251"
Buildtool version
Gradle 6.5
What operating system are you using
Windows
Dependencies
spock 1.3 - groovy 2.4
Additional context
No response
The text was updated successfully, but these errors were encountered: