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 1816
予麋鹿
予麋鹿 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 19:15

    In case it helps, I faced similar issue in IntelliJ. In principle, the problem is with incorrect mockito jar being picked. How it gets included and how to delete it could be project/IDE specific. My question and answer is here - An exception or error caused a run to abort: org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress()L

提交回复
热议问题