调用final方法,mock final类时,这个类要在@PrepareForTest加上
否则会报错
Also, this error might show up because you use argument matchers with methods that cannot be mocked.
Following methods cannot be stubbed/verified: final/private/equals()/hashCode().
调用final方法,mock final类时,这个类要在@PrepareForTest加上
否则会报错
Also, this error might show up because you use argument matchers with methods that cannot be mocked.
Following methods cannot be stubbed/verified: final/private/equals()/hashCode().