我想编写两个测试用例,无论是正面场景还是负面场景。
我的示例代码是,
/**
*
*/
public void testgetAsnAccuracyInstanceType() throws Exception
{
String METHOD_NAME = "testgetAsnAccuracyInstanceType";
log.entering(CLASS_NAME, METHOD_NAME);
//Rating Element "1" ASN Accuracy
populateForTestMethodValues("1");
populateWeekOfList();
List<WeeklyDeliveryInstanceTypeQO> asnAccuracyInstanceTypeList = weeklyDlvyInstancesDashboardReportForm.getAsnAccuracyInstanceType();
assertTrue("testgetASNAccuracyRatingElement is Not Empty: ", asnAccuracyInstanceTypeList.size() > 0);
log.exiting(CLASS_NAME, METHOD_NAME);
}