Search in sources :

Example 11 with Configuration

use of org.neo4j.ogm.config.Configuration in project spring-boot by spring-projects.

the class Neo4jPropertiesTests method fileUriUseEmbeddedServer.

@Test
public void fileUriUseEmbeddedServer() {
    Neo4jProperties properties = load(true, "spring.data.neo4j.uri=file://var/tmp/graph.db");
    Configuration configuration = properties.createConfiguration();
    assertDriver(configuration, Neo4jProperties.EMBEDDED_DRIVER, "file://var/tmp/graph.db");
}
Also used : DriverConfiguration(org.neo4j.ogm.config.DriverConfiguration) Configuration(org.neo4j.ogm.config.Configuration) Test(org.junit.Test)

Aggregations

Configuration (org.neo4j.ogm.config.Configuration)11 Test (org.junit.Test)10 DriverConfiguration (org.neo4j.ogm.config.DriverConfiguration)10 Car (com.baeldung.spring.data.neo4j.domain.Car)1 Company (com.baeldung.spring.data.neo4j.domain.Company)1 HashMap (java.util.HashMap)1 Result (org.neo4j.ogm.model.Result)1 Session (org.neo4j.ogm.session.Session)1 SessionFactory (org.neo4j.ogm.session.SessionFactory)1