Java怎样单测void类型的方法 - 仪器网
仪器社区

Java怎样单测void类型的方法

王帆—6666 2017-02-17
评论
全部评论
xuyy_11
是测试方法是否运行 or 方法运行是否正确 or 是否修改了传入的对象
直接写一个测试类
/**
*测试对象的void方法
*/
public class TestMethod() {
//初始化对象

//调用对象的void方法
}
10 0 2017-02-18 0条评论 回复
您可能感兴趣的社区主题
加载中...
发布 评论