Search in sources :

Example 1 with TestGraphDatabaseBuilder

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();
}
Also used : HashMap(java.util.HashMap) Setting(org.neo4j.graphdb.config.Setting) TestGraphDatabaseBuilder(org.neo4j.test.TestGraphDatabaseBuilder) TestGraphDatabaseFactory(org.neo4j.test.TestGraphDatabaseFactory) Matchers.containsString(org.hamcrest.Matchers.containsString)

Aggregations

HashMap (java.util.HashMap)1 Matchers.containsString (org.hamcrest.Matchers.containsString)1 Setting (org.neo4j.graphdb.config.Setting)1 TestGraphDatabaseBuilder (org.neo4j.test.TestGraphDatabaseBuilder)1 TestGraphDatabaseFactory (org.neo4j.test.TestGraphDatabaseFactory)1