mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Renamed Record class to DBRecord
This commit is contained in:
@@ -124,7 +124,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
|
||||
private void tableFill(Table table, int recCnt, String baseName) throws Exception {
|
||||
for (int i = 0; i < recCnt; i++) {
|
||||
Record rec = SCHEMA.createRecord(i);
|
||||
DBRecord rec = SCHEMA.createRecord(i);
|
||||
rec.setString(0, baseName + i);
|
||||
table.putRecord(rec);
|
||||
}
|
||||
@@ -152,12 +152,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
@@ -171,7 +171,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table2.getRecord(i);
|
||||
DBRecord rec = table2.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable2_" + i, rec.getString(0));
|
||||
}
|
||||
@@ -207,12 +207,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
@@ -259,12 +259,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
@@ -278,7 +278,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table2.getRecord(i);
|
||||
DBRecord rec = table2.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable2_" + i, rec.getString(0));
|
||||
}
|
||||
@@ -315,12 +315,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
@@ -334,7 +334,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table2.getRecord(i);
|
||||
DBRecord rec = table2.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable2_" + i, rec.getString(0));
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
|
||||
dbh = new PackedDBHandle("MyContent");
|
||||
long txId = dbh.startTransaction();
|
||||
Table table = dbh.createTable("MyTable", TEST_SCHEMA);
|
||||
Record rec = TEST_SCHEMA.createRecord(1);
|
||||
DBRecord rec = TEST_SCHEMA.createRecord(1);
|
||||
rec.setString(0, "String1");
|
||||
table.putRecord(rec);
|
||||
dbh.endTransaction(txId, true);
|
||||
@@ -115,7 +115,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
|
||||
assertNotNull(table);
|
||||
assertEquals(1, table.getRecordCount());
|
||||
|
||||
Record rec = table.getRecord(1);
|
||||
DBRecord rec = table.getRecord(1);
|
||||
assertNotNull(rec);
|
||||
assertEquals("String1", rec.getString(0));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user