类中存在刷新、初始化等静态方法时,编写单元测试案例。 示例 被测试类:
public class MethodClass{ public static void refresh(){ ...... init()