use of org.neo4j.ogm.drivers.bolt.driver.BoltDriver in project neo4j-ogm by neo4j.
the class GenericArrayConversionTest method startServer.
@BeforeClass
public static void startServer() {
serverControls = Neo4jBuilders.newInProcessBuilder().build();
Driver driver = GraphDatabase.driver(serverControls.boltURI(), Config.builder().withoutEncryption().build());
supportsBytePacking = ServerVersion.version(driver).greaterThanOrEqual(ServerVersion.v3_4_0);
sessionFactory = new SessionFactory(new BoltDriver(driver), DOMAIN_PACKAGE);
}
use of org.neo4j.ogm.drivers.bolt.driver.BoltDriver in project neo4j-ogm by neo4j.
the class BookmarkTest method setUp.
@Before
public void setUp() {
BoltDriver driver = new BoltDriver(nativeDriver);
session = new Neo4jSession(new MetaData("org.neo4j.ogm.empty"), true, driver);
}
use of org.neo4j.ogm.drivers.bolt.driver.BoltDriver in project neo4j-ogm by neo4j.
the class ResponseMapperTest method shouldIgnoreResultsIfQueryMapsToVoid.
// GH-479
@Test
public void shouldIgnoreResultsIfQueryMapsToVoid() {
SessionFactory sessionFactory = null;
try (Driver driver = GraphDatabase.driver(boltURI, driverConfig)) {
sessionFactory = new SessionFactory(new BoltDriver(driver), ResponseMapperTest.class.getName());
Session session = sessionFactory.openSession();
// The call would have been successfull if the procedure would have returned a stream of
// things with at max 1 attribute, but in the end, that would be what was requested for.
session.query("CALL apoc.periodic.iterate('MATCH (d:Document) RETURN d', " + " 'SET d.thisIsAProperty = 0'" + " ,{batchSize:200, parallel:false, iterateList:true}) ", new HashMap<>());
} finally {
if (sessionFactory != null) {
sessionFactory.close();
}
}
}
use of org.neo4j.ogm.drivers.bolt.driver.BoltDriver in project neo4j-ogm by neo4j.
the class SpatialBoltTest method init.
@BeforeClass
public static void init() {
assumeTrue(isBoltDriver());
Configuration ogmConfiguration = getBaseConfigurationBuilder().useNativeTypes().build();
Driver driver = new BoltDriver();
driver.configure(ogmConfiguration);
sessionFactory = new SessionFactory(driver, SpatialBoltTest.class.getPackage().getName());
}
use of org.neo4j.ogm.drivers.bolt.driver.BoltDriver in project neo4j-ogm by neo4j.
the class DistanceComparisonBoltTest method init.
@BeforeClass
public static void init() {
assumeTrue(isBoltDriver());
Configuration ogmConfiguration = getBaseConfigurationBuilder().useNativeTypes().build();
Driver boltOgmDriver = new BoltDriver();
boltOgmDriver.configure(ogmConfiguration);
sessionFactory = new SessionFactory(boltOgmDriver, DatesBoltTest.class.getPackage().getName());
}
Aggregations