需要编写 junit 来检查以下返回文件列表的方法。
public List<pdffiles> noticesPerform (Account account, fromDate, ToDate)
{
List<pdffiles> notices = new Arraylist();
............
..
return notices;
}
如何在junit签入
如何检查返回列表不为空?是否需要使用asserThat之类的?有没有最好的方法呢?
如何通过测试对象account,fromDate,Todate来测试方法?