【发布时间】:2012-08-27 09:23:40
【问题描述】:
假设我有一个非最终的具体类,其最终方法如下所示。
public class ABC {
public final String myMethod(){
return "test test";
}
}
当使用Powermockito 在junit 中调用它时,是否可以模拟myMethod() 以返回其他内容?谢谢
【问题讨论】:
标签: java unit-testing powermock