mockito test gives no such method error when run as junit test but when jars are added manually in run confugurations, it runs well

后端 未结 5 1813
予麋鹿
予麋鹿 2020-12-05 18:15

I\'ve been facing a peculiar problem. Basically, when I run my Mockito/PowerMockito test normally i.e. \'Run as Junit Test\', it gives me the following error :



        
5条回答
  •  一向
    一向 (楼主)
    2020-12-05 18:57

    I think there is an issue with Mockito version - I just updated the code from -

    testCompile group: 'org.mockito', name: 'mockito-all', version: '1.8.5'
    

    to

    testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
    

提交回复
热议问题