摘要: 一、当需要mock静态方法的时候,必须加注解@PrepareForTest和@RunWith。注解@PrepareForTest里写的类是静态方法所在的类。 import org.junit.Test; import org.junit.runner.RunWith; import org.powe 阅读全文
posted @ 2021-06-25 17:52 想开挖掘机的程序员 阅读(9753) 评论(0) 推荐(0)