今天又用到了EasyMock,并且涉及到了matcher.
不得不記住一句話:
If you would like to use matchers in a call, you have to specify matchers for all arguments of the method call.
也就是在你用matcher的時候(比如eg/isA/)的時候必須為所有的方法函數(shù)制定matcher.
否則直接出錯.
切記!
不得不記住一句話:
If you would like to use matchers in a call, you have to specify matchers for all arguments of the method call.
也就是在你用matcher的時候(比如eg/isA/)的時候必須為所有的方法函數(shù)制定matcher.
否則直接出錯.
切記!

