use of org.neo4j.test.TestEnterpriseGraphDatabaseFactory in project neo4j by neo4j.
the class QueryLoggerIT method setUp.
@Before
public void setUp() {
logsDirectory = new File(testDirectory.graphDbDir(), "logs");
logFilename = new File(logsDirectory, "query.log");
AssertableLogProvider inMemoryLog = new AssertableLogProvider();
databaseBuilder = new TestEnterpriseGraphDatabaseFactory().setFileSystem(new UncloseableDelegatingFileSystemAbstraction(fileSystem.get())).setInternalLogProvider(inMemoryLog).newImpermanentDatabaseBuilder(testDirectory.graphDbDir());
}
use of org.neo4j.test.TestEnterpriseGraphDatabaseFactory in project neo4j by neo4j.
the class UdcExtensionImplTest method createDatabase.
private GraphDatabaseService createDatabase(Map<String, String> config) throws IOException {
GraphDatabaseBuilder graphDatabaseBuilder = new TestEnterpriseGraphDatabaseFactory().newImpermanentDatabaseBuilder();
graphDatabaseBuilder.loadPropertiesFromURL(getClass().getResource("/org/neo4j/ext/udc/udc.properties"));
if (config != null) {
graphDatabaseBuilder.setConfig(config);
}
return graphDatabaseBuilder.newGraphDatabase();
}
Aggregations