}
//調用超類的setUp(),確保測試環境被初始化。
public void setUp() throws Exception {
super.setUp();
System.err.println("測試開始!");
book = new BookBean();
System.out.println("BookBean對象被初始化。");
}
public void tearDown() throws Exception {
System.out.println("BookBean對象將被清理");
book = null;
System.out.println("測試結束!");
//調用超類的tearDown(),確保對象被清理
super.tearDown();
}
public static junit.framework.Test suite()
{
TestSuite suite = new TestSuite(BookBeanTest.class);
return suite;
}
public void testBookISBN() {
文章來源于領測軟件測試網 http://www.kjueaiud.com/