use of org.neo4j.bolt.dbapi.BoltGraphDatabaseServiceSPI in project neo4j by neo4j.
the class DefaultDatabaseTransactionStateMachineSPIProviderTest method newSpiProvider.
private TransactionStateMachineSPIProvider newSpiProvider(DatabaseManagementService managementService) {
var clock = mock(SystemNanoClock.class);
var dbProvider = new BoltKernelDatabaseManagementServiceProvider(managementService, new Monitors(), clock, Duration.ZERO);
return new AbstractTransactionStatementSPIProvider(dbProvider, mockBoltChannel, clock, mock(MemoryTracker.class, RETURNS_MOCKS)) {
@Override
protected TransactionStateMachineSPI newTransactionStateMachineSPI(BoltGraphDatabaseServiceSPI activeBoltGraphDatabaseServiceSPI, StatementProcessorReleaseManager resourceReleaseManger) {
return mock(TransactionStateMachineSPI.class);
}
@Override
public void releaseTransactionStateMachineSPI() {
}
};
}
Aggregations