HWDBTestCase4
来源:互联网 发布:https绑定域名iis 编辑:程序博客网 时间:2024/06/05 22:39
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);
}
//准备数据
}