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

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -