테스트
@Test
public void exportXls() throws Exception {
dbUnitSupport.exportXlsFrom(“code”, “item”, “users”, “role”, “users_role”);
assertTrue(new File(DBUnitSupport.EXPORTED_XLS_FILE).exists());
}구현
protected void exportXlsFrom(String… tableNames) throws Exception {
IDataSet dataSet = getConnection().createDataSet(tableNames);
XlsDataSet.write(dataSet, new FileOutputStream(new File(EXPORTED_XLS_FILE)));
}흠.. 간단하네요. 간단 간단.