Is there a specific release of Mockito I should use with Playspec

我只是一个虾纸丫 提交于 2019-12-25 01:35:52

问题


Is there a specific release of Mockito I should use with Playspec? I am observing a strange pattern. When I start IntelliJ and run unit tests, I get error org.mockito.internal.invocation.ArgumentsProcessor.expandArgs(Lorg/mockito/internal/invocation/MockitoMethod;[Ljava/lang/Object;)[Ljava/lang/Object;.

Then I close IntelliJ and restart it. Then the tests run!. This is repeatable behavior. I am wondering if this could be due to some incompatible library which somehow gets resolved when IntelliJ is restarted. Currently, I am using

"org.mockito" % "mockito-core" % "2.24.5" % "test"

But earlier I had also used

"org.mockito" %"mockito-all"%"1.10.19"%"test" and "org.mockito" % "mockito-core" % "2.18.3" % "test". I wonder if some residue of the other versions is left. which is causing this problem.


回答1:


I don't know what causes the issue. But whenever I get it, I refresh the sbt project



来源:https://stackoverflow.com/questions/55194690/is-there-a-specific-release-of-mockito-i-should-use-with-playspec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!