use of org.neo4j.test.TestGraphDatabaseBuilder in project neo4j by neo4j.
the class AuthProceduresIT method createGraphDatabase.
//---------- utility -----------
private GraphDatabaseService createGraphDatabase(EphemeralFileSystemAbstraction fs) throws IOException {
removePreviousAuthFile();
Map<Setting<?>, String> settings = new HashMap<>();
settings.put(GraphDatabaseSettings.auth_enabled, "true");
TestGraphDatabaseBuilder graphDatabaseFactory = (TestGraphDatabaseBuilder) new TestGraphDatabaseFactory().setFileSystem(fs).newImpermanentDatabaseBuilder().setConfig(GraphDatabaseSettings.auth_enabled, "true");
return graphDatabaseFactory.newGraphDatabase();
}
Aggregations