我需要使用测试用例在方法中打印值。我的代码是:
public void testgetAllRatingElementsWeekNo() throws Exception
{
String METHOD_NAME = "testgetAllRatingElementsWeekNo";
log.entering(CLASS_NAME, METHOD_NAME);
populateForTestMethodValues("1");
populateWeekOfList();
int allRatingElementsWeekNo = weeklyDlvyInstancesDashboardReportForm.getAllRatingElementsWeekNo();
System.out.println("allRatingElementsWeekNo :" + allRatingElementsWeekNo );
assertEquals("testgetAllRatingElementsWeekNo is Not Greater than Zero: ", allRatingElementsWeekNo > 0, allRatingElementsWeekNo);
log.exiting(CLASS_NAME, METHOD_NAME);
}
我需要在抛出异常之前打印我的值。