📄 testemploydao.java~1~
字号:
package chapter25.db;
import junit.framework.*;
import fixture.*;
import java.sql.*;
public class TestEmployDAO extends TestCase {
private EmployDAO employDAO = null;
HrJdbcFixture hrJdbcFixture;
protected void setUp() throws Exception {
super.setUp();
/**@todo verify the constructors*/
employDAO = new EmployDAO(null);
hrJdbcFixture = new HrJdbcFixture(this);
hrJdbcFixture.setUp();
}
protected void tearDown() throws Exception {
employDAO = null;
hrJdbcFixture.tearDown();
hrJdbcFixture = null;
super.tearDown();
}
public void testFindById() throws SQLException {
String id = "";
Employ expectedReturn = null;
Employ actualReturn = employDAO.findById(id);
assertEquals("return value", expectedReturn, actualReturn);
/**@todo fill in the test code*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -