groovy - IntelliJ warning on Spock interactions when combining Mocking and Stubbing -


intellij idea (2017.2) emits following warning on spock interactions combine cardinality return value.

'multiply' in 'org.codehaus.groovy.runtime.defaultgroovymethods' cannot applied to...

...followed return type of interaction.

neither stubs nor mocks alone emit warning, combination of two.

  • 1 * mockdao.deletedata() ok.

  • mockdao.readdata() >> mydata ok.

  • 1 * mockdao.readdata() >> mydata warning.

is there setting or syntax make intellij understand mock/stub combination?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -