use of org.neo4j.ogm.config.Configuration in project spring-boot by spring-projects.
the class Neo4jPropertiesTests method credentialsAreSetFromUri.
@Test
public void credentialsAreSetFromUri() {
Neo4jProperties properties = load(true, "spring.data.neo4j.uri=http://user:secret@my-server:7474");
Configuration configuration = properties.createConfiguration();
assertDriver(configuration, Neo4jProperties.HTTP_DRIVER, "http://user:secret@my-server:7474");
assertCredentials(configuration, "user", "secret");
}
use of org.neo4j.ogm.config.Configuration in project spring-boot by spring-projects.
the class Neo4jPropertiesTests method httpUriUseHttpServer.
@Test
public void httpUriUseHttpServer() {
Neo4jProperties properties = load(true, "spring.data.neo4j.uri=http://localhost:7474");
Configuration configuration = properties.createConfiguration();
assertDriver(configuration, Neo4jProperties.HTTP_DRIVER, "http://localhost:7474");
}
use of org.neo4j.ogm.config.Configuration in project spring-boot by spring-projects.
the class Neo4jPropertiesTests method defaultUseEmbeddedInMemoryIfAvailable.
@Test
public void defaultUseEmbeddedInMemoryIfAvailable() {
Neo4jProperties properties = load(true);
Configuration configuration = properties.createConfiguration();
assertDriver(configuration, Neo4jProperties.EMBEDDED_DRIVER, null);
}
use of org.neo4j.ogm.config.Configuration in project spring-boot by spring-projects.
the class Neo4jPropertiesTests method boltUriUseBoltDriver.
@Test
public void boltUriUseBoltDriver() {
Neo4jProperties properties = load(true, "spring.data.neo4j.uri=bolt://localhost:7687");
Configuration configuration = properties.createConfiguration();
assertDriver(configuration, Neo4jProperties.BOLT_DRIVER, "bolt://localhost:7687");
}
use of org.neo4j.ogm.config.Configuration in project spring-boot by spring-projects.
the class Neo4jPropertiesTests method credentialsAreSet.
@Test
public void credentialsAreSet() {
Neo4jProperties properties = load(true, "spring.data.neo4j.uri=http://localhost:7474", "spring.data.neo4j.username=user", "spring.data.neo4j.password=secret");
Configuration configuration = properties.createConfiguration();
assertDriver(configuration, Neo4jProperties.HTTP_DRIVER, "http://localhost:7474");
assertCredentials(configuration, "user", "secret");
}
Aggregations