use of org.neo4j.bolt.v1.runtime.BoltConnectionDescriptor in project neo4j by neo4j.
the class SessionRule method newMachine.
BoltStateMachine newMachine(BoltConnectionDescriptor connectionDescriptor, Clock clock) {
if (boltFactory == null) {
throw new IllegalStateException("Cannot access test environment before test is running.");
}
BoltStateMachine connection = boltFactory.newMachine(connectionDescriptor, () -> {
}, clock);
runningMachines.add(connection);
return connection;
}
Aggregations