NPE when calling MockitoAnnotations.initMocks() in AndroidTestCase

前端 未结 4 1778
耶瑟儿~
耶瑟儿~ 2021-01-04 09:04

Trying to use mockito in my AndroidTestCase. I added the dependencies to the build.gradle:

final DEXMAKER_VERSION = \'1.2\'

dependencies {
    // ...
    an         


        
4条回答
  •  星月不相逢
    2021-01-04 09:58

    I've created an issue there https://github.com/mockito/mockito/issues/392 Original answer with hotfix there https://stackoverflow.com/a/36642606/1224247

提交回复
热议问题