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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -