S2DaoTestCase
テストめちゃくちゃ楽っていうか一撃。
全部ほんとうのことですから!!!!! 残念!!!!
public class EmployeeDaoTest extends S2DaoTestCase {private EmployeeDao dao_;
public EmployeeDaoTest(String arg0) {
super(arg0);
}public static void main(String[] args) {
junit.textui.TestRunner.run(EmployeeDaoTest.class);
}
public void setUp() {
include("examples/dao/EmployeeDao.dicon");
}public void testGetAllEmployee() throws Exception {
DataSet expected = readXls("getAllEmployeesResult.xls");
List actual = dao_.getAllEmployees();
assertEquals("1", expected, actual);
}
}