Mod aaa-12 BUG修复,./data下H2数据库文件不更新,导致表结构不更新的bug。

RCA:
SOL:
修改人:dongxiancun
检视人:dongxiancun
This commit is contained in:
dongxiancun 2019-07-24 12:51:34 +08:00
parent ac0c0aa295
commit 4e61bb06f1
1 changed files with 7 additions and 4 deletions

View File

@ -33,13 +33,16 @@ import org.opendaylight.aaa.impl.password.service.DefaultPasswordHashService;
public class H2StoreTest {
private static String PATHNAME1 = "./data" + File.separatorChar + "idmlight.db.mv.db";
private static String PATHNAME2 = "./data" + File.separatorChar + "idmlight.db.trace.db";
@BeforeClass
public static void start() {
File file = new File("idmlight.db.mv.db");
File file = new File(PATHNAME1);
if (file.exists()) {
file.delete();
}
file = new File("idmlight.db.trace.db");
file = new File(PATHNAME2);
if (file.exists()) {
file.delete();
}
@ -47,11 +50,11 @@ public class H2StoreTest {
@AfterClass
public static void end() {
File file = new File("idmlight.db.mv.db");
File file = new File(PATHNAME1);
if (file.exists()) {
file.delete();
}
file = new File("idmlight.db.trace.db");
file = new File(PATHNAME2);
if (file.exists()) {
file.delete();
}