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
Post a Comment