如何为此编写测试用例?
Class ClassToBeTested{
Result method(){
//static method called here
session session=ClassContainsStatic.staticMethod();
//method called here
Query query=session.createQuery();
//method returned here
return query.uniqueResult();
}
}
答案 0 :(得分:0)
请按以下步骤操作: