use of org.neo4j.snapshot.TestTransactionVersionContextSupplier in project neo4j by neo4j.
the class SnapshotQueryExecutionIT method setUp.
@Before
public void setUp() throws Exception {
testContextSupplier = new TestTransactionVersionContextSupplier();
var dependencies = new Dependencies();
dependencies.satisfyDependencies(testContextSupplier);
testWebContainer = serverOnRandomPorts().withProperty(GraphDatabaseInternalSettings.snapshot_query.name(), TRUE).withDependencies(dependencies).build();
prepareCursorContext();
createData(testWebContainer.getDefaultDatabase());
}
use of org.neo4j.snapshot.TestTransactionVersionContextSupplier in project neo4j by neo4j.
the class EagerResultIT method setUp.
@BeforeEach
void setUp() {
storeDir = testDirectory.homePath();
testContextSupplier = new TestTransactionVersionContextSupplier();
database = startRestartableDatabase();
prepareData();
TransactionIdStore transactionIdStore = getTransactionIdStore();
testContextSupplier.setTestVersionContextSupplier(() -> {
var context = new TestVersionContext(transactionIdStore::getLastClosedTransactionId);
context.setWrongLastClosedTxId(false);
return context;
});
}
use of org.neo4j.snapshot.TestTransactionVersionContextSupplier in project neo4j by neo4j.
the class QueryRestartIT method setUp.
@BeforeEach
void setUp() throws IOException {
storeDir = testDirectory.homePath();
testContextSupplier = new TestTransactionVersionContextSupplier();
database = startSnapshotQueryDb();
createData();
// Checkpoint to make the counts store flush its changes map so that it will need to read on next query
checkpoint();
testContextSupplier.setTestVersionContextSupplier(() -> testCursorContext(managementService, DEFAULT_DATABASE_NAME));
}
Aggregations