private void prepare() throws Exception
{
if (getTopengTable() != null && getTopengTable().length > 0)
{
changeDbInfo(USER_TOPENG, PWD_TOPENG);
disableForeignKey();
backupCurrentTable(getTopengTable(), USER_TOPENG);
}
if (getCcareTable() != null && getCcareTable().length > 0)
{
changeDbInfo(USER_CCARE, PWD_CCARE);
disableForeignKey();
backupCurrentTable(getCcareTable(), USER_CCARE);
}
if (getBillingTable() != null && getBillingTable().length > 0)
{
changeDbInfo(USER_BILLING, PWD_BILLING);
disableForeignKey();
backupCurrentTable(getBillingTable(), USER_BILLING);
}
if (getReportTable() != null && getReportTable().length > 0)
{
changeDbInfo(USER_REPORT, PWD_REPORT);
disableForeignKey();
backupCurrentTable(getReportTable(), USER_REPORT);
}
//准备数据
}
HWDBTestCase4
最新推荐文章于 2009-08-26 16:14:00 发布