During suite tests EasyMock says 0 matchers expected 1 recorded

前端 未结 6 1075
走了就别回头了
走了就别回头了 2021-02-19 00:42

So I\'ve been using EasyMock\'s class extension for a while now. All of a sudden I\'m getting this exception, but only when I run the entire test suite:

java.lan         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-19 00:59

    I am running into a similar problem. From what I observed, even method returns are matched using Matchers. So if your first method fails for any reason, the matcher for the return match is still in the stack. That could be one reason why you are seeing 1 matchers recorded even when your method doesn't take any argument. Basically, the first method invocation never returned a value.

提交回复
热议问题