Skip to content

Commit cfdf715

Browse files
aheevadsharma
authored andcommitted
refactor db ext
1 parent 0f94e3b commit cfdf715

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/test/java/com/lbugdb/DatabaseTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class DatabaseTest extends TestBase {
1111
void DBCreationAndDestroyWithArgs() {
1212
String dbPath = "";
1313
try {
14-
dbPath = tempDir.resolve("db1.lbug").toString();
14+
dbPath = tempDir.resolve("db1.lbdb").toString();
1515
} catch (Exception e) {
1616
fail("Cannot get database path: " + e.getMessage());
1717
}
@@ -47,7 +47,7 @@ void DBCreationAndDestroyWithArgs() {
4747
void DBCreationWithInvalidMaxDBSize() {
4848
String dbPath = "";
4949
try {
50-
dbPath = tempDir.resolve("db2.lbug").toString();
50+
dbPath = tempDir.resolve("db2.lbdb").toString();
5151
} catch (Exception e) {
5252
fail("Cannot get database path: " + e.getMessage());
5353
}
@@ -76,7 +76,7 @@ void DBCreationWithInvalidMaxDBSize() {
7676
void DBCreationAndDestroyWithPathOnly() {
7777
String dbPath = "";
7878
try {
79-
dbPath = tempDir.resolve("db3.lbug").toString();
79+
dbPath = tempDir.resolve("db3.lbdb").toString();
8080
} catch (Exception e) {
8181
fail("Cannot get database path: " + e.getMessage());
8282
}
@@ -127,7 +127,7 @@ void DBDestroyBeforeConnectionAndQueryResult(){
127127
void DBCreationTestThrowOnWALReplayFailure() {
128128
String dbPath = "";
129129
try {
130-
dbPath = tempDir.resolve("db4.lbug").toString();
130+
dbPath = tempDir.resolve("db4.lbdb").toString();
131131
} catch (Exception e) {
132132
fail("Cannot get database path: " + e.getMessage());
133133
}
@@ -180,7 +180,7 @@ void DBCreationTestThrowOnWALReplayFailure() {
180180
void DBCreationTestEnableChecksums() {
181181
String dbPath = "";
182182
try {
183-
dbPath = tempDir.resolve("db5.lbug").toString();
183+
dbPath = tempDir.resolve("db5.lbdb").toString();
184184
} catch (Exception e) {
185185
fail("Cannot get database path: " + e.getMessage());
186186
}

src/test/java/com/lbugdb/TestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class TestBase {
1717

1818
@BeforeAll
1919
static void getDBandConn() throws IOException {
20-
String dbPath = tempDir.resolve("db.lbug").toString();
20+
String dbPath = tempDir.resolve("db.lbdb").toString();
2121
TestHelper.loadData(dbPath);
2222
db = TestHelper.getDatabase();
2323
conn = TestHelper.getConnection();

0 commit comments

Comments
 (0)