use of org.neo4j.test.TestDatabaseManagementServiceBuilder in project neo4j by neo4j.
the class RebuildCountsTest method restart.
private void restart(FileSystemAbstraction fs) {
if (db != null) {
managementService.shutdown();
}
managementService = new TestDatabaseManagementServiceBuilder(databaseLayout).setUserLogProvider(userLogProvider).setInternalLogProvider(internalLogProvider).setFileSystem(new UncloseableDelegatingFileSystemAbstraction(fs)).impermanent().setConfig(index_background_sampling_enabled, false).build();
db = managementService.database(DEFAULT_DATABASE_NAME);
}
use of org.neo4j.test.TestDatabaseManagementServiceBuilder in project neo4j by neo4j.
the class BatchInsertTest method instantiateGraphDatabaseService.
private GraphDatabaseAPI instantiateGraphDatabaseService(int denseNodeThreshold) {
TestDatabaseManagementServiceBuilder factory = new TestDatabaseManagementServiceBuilder(databaseLayout);
factory.setFileSystem(fs);
managementService = factory.impermanent().setConfig(configuration(denseNodeThreshold)).build();
return (GraphDatabaseAPI) managementService.database(DEFAULT_DATABASE_NAME);
}
use of org.neo4j.test.TestDatabaseManagementServiceBuilder in project neo4j by neo4j.
the class BoltThrottleMaxDurationIT method getTestGraphDatabaseFactory.
protected TestDatabaseManagementServiceBuilder getTestGraphDatabaseFactory() {
TestDatabaseManagementServiceBuilder factory = new TestDatabaseManagementServiceBuilder();
logProvider = new AssertableLogProvider();
factory.setInternalLogProvider(logProvider);
return factory;
}
use of org.neo4j.test.TestDatabaseManagementServiceBuilder in project neo4j by neo4j.
the class BatchInsertTokenIndexesTest method instantiateGraphDatabaseService.
private GraphDatabaseAPI instantiateGraphDatabaseService() {
TestDatabaseManagementServiceBuilder factory = new TestDatabaseManagementServiceBuilder(databaseLayout);
factory.setFileSystem(fs);
managementService = factory.setConfig(configuration()).build();
return (GraphDatabaseAPI) managementService.database(DEFAULT_DATABASE_NAME);
}
use of org.neo4j.test.TestDatabaseManagementServiceBuilder in project neo4j by neo4j.
the class BoltSchedulerBusyIT method getTestGraphDatabaseFactory.
private TestDatabaseManagementServiceBuilder getTestGraphDatabaseFactory() {
TestDatabaseManagementServiceBuilder factory = new TestDatabaseManagementServiceBuilder();
factory.setInternalLogProvider(internalLogProvider);
factory.setUserLogProvider(userLogProvider);
return factory;
}
Aggregations