}
//调用超类的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() {
文章来源于领测软件测试网 https://www.ltesting.net/