/**
* 测试非静态方法
*/
public class Person {
public void test01(){
System.out.println("test01");
}
public void test02(){
if(getDepth()>1){
System.out.println("test02---大于2");
}else{
System.out.println("test02---小于2");
}
}
public void test03(){
try{
if(getDepth()>1){
System.out.println("test02---大于2");
}else{
System.out
Mockito模拟访问非静态方法教程
最新推荐文章于 2023-12-25 19:43:32 发布