Closed Vad1mo closed 9 years ago
This is fixed in the newest (13.1.5) version of IntelliJ, see issue IDEA-124864
well then I must have a different 13.1.5 version
but thanks for the link to the issue. will try to reopen it.
You're right; I see my mistake. I'd found the issue in their tracker then didn't test sufficiently locally. Multiply looks fine when applied to a method that doesn't return a value; it's only problematic when mocking methods that return something.
I created an issue at intellij,when I get an ticket number I will reply it here.
Isn't it that reopened issue https://youtrack.jetbrains.com/issue/IDEA-127650 ?
Yup, looks like it. Voted it up.
this is not mine, but it looks like it is similar to mine.
intellij support requested to install version 14. The multiply warning is gone rest is unchanged.
When using Groovy and Spock Specifications
I have the following code where groovy complains:
For line
1 * messageSource.getMessage("user.not.found",_,_) >> 'msg'
it recommends to replace it with
messageSource.getMessage("user.not.found",_,_) >> 'msg'
then it also sys here
1 * userRepositoryMock.findByEmail(this.user.email)
that multiply can not be used.In order to resolve this "issue" is a custom Groovy DSL needed or should the Groovy plugin handle that or the spock plugin?