Mod aaa-12 BUG修复,./data下H2数据库文件不更新,导致表结构不更新的bug。
RCA: SOL: 修改人:dongxiancun 检视人:dongxiancun
This commit is contained in:
parent
ac0c0aa295
commit
4e61bb06f1
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue