-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Arity mismatch. Declared parameters: [class java.lang.Object]. Matched arguments: [] #297
Comments
You have to explicitly declare an empty list of closure parameters. So instead of this: Given(~"Carbon Coder is running correctly\$") {
transcodeHelper.prepareService()
} Do this: Given(~"Carbon Coder is running correctly\$") { ->
transcodeHelper.prepareService()
} Unfortunately it seems impossible to detect when a list of parameters is not supplied, so I can't give a better error message. You just have to know about this I guess. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
mpkorstanje
pushed a commit
that referenced
this issue
Oct 4, 2019
…t of closure parameters. Closes #297.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am getting the following stack trace, for a step like the following:
And the step definition :
It works if I add a regex to the step definition. e.g.
The text was updated successfully, but these errors were encountered: