use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltV43TransportIT method setUp.
@BeforeEach
public void setUp(TestInfo testInfo) throws IOException {
server.setConfigure(withOptionalBoltEncryption());
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(newMessageEncoder());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltV41TransportIT method setUp.
@BeforeEach
public void setUp(TestInfo testInfo) throws IOException {
server.setConfigure(settings -> {
withOptionalBoltEncryption().accept(settings);
settings.put(FabricSettings.enabled_by_default, false);
});
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(newMessageEncoder());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltV42TransportIT method setUp.
@BeforeEach
public void setUp(TestInfo testInfo) throws IOException {
server.setConfigure(settings -> {
withOptionalBoltEncryption().accept(settings);
settings.put(FabricSettings.enabled_by_default, false);
});
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(newMessageEncoder());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class MultipleBoltServerPortsStressTest method setUp.
@BeforeEach
void setUp(TestInfo testInfo) throws IOException {
server.setGraphDatabaseFactory(new SharedAuthManagerDbmsBuilder());
server.setConfigure(settings -> {
settings.put(BoltConnector.enabled, true);
settings.put(BoltConnector.listen_address, new SocketAddress(0));
settings.put(GraphDatabaseSettings.routing_enabled, true);
settings.put(GraphDatabaseSettings.routing_listen_address, new SocketAddress(0));
});
server.init(testInfo);
util = new TransportTestUtil(newMessageEncoder());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltKeepAliveSchedulingIT method setup.
@BeforeEach
public void setup(TestInfo testInfo) throws Exception {
server.setConfigure(getSettingsFunction());
server.init(testInfo);
installSleepProcedure(server.graphDatabaseService());
address = server.lookupDefaultConnector();
connection = new SocketConnection();
util = new TransportTestUtil();
}
Aggregations