Mockito AbstractMethodError on initMocks

前端 未结 5 1437
长发绾君心
长发绾君心 2020-12-17 17:16

So I\'ve been struggling pretty much all day trying to get Mockito to work for my Android project. I added everything to my Gradle build file:

androidTestCom         


        
5条回答
  •  借酒劲吻你
    2020-12-17 18:03

    Dexmaker does not support Mockito 2.0 since the definition of MockMaker has changed. I suggest you use Mockito 1.10.19 but then you will run into this NPE for which I have submitted a fix.

    Looks like my fix is now merged into dexmaker as of version 1.5

提交回复
热议问题