use of org.neo4j.bolt.v1.transport.socket.client.WebSocketConnection in project neo4j by neo4j.
the class BoltConfigIT method shouldSupportMultipleConnectors.
@Test
public void shouldSupportMultipleConnectors() throws Throwable {
// Given
// When
// Then
HostnamePort address0 = new HostnamePort("localhost:7888");
assertConnectionAccepted(address0, new WebSocketConnection());
assertConnectionAccepted(address0, new SecureWebSocketConnection());
assertConnectionAccepted(address0, new SocketConnection());
assertConnectionAccepted(address0, new SecureSocketConnection());
HostnamePort address1 = new HostnamePort("localhost:7687");
assertConnectionRejected(address1, new WebSocketConnection());
assertConnectionAccepted(address1, new SecureWebSocketConnection());
assertConnectionRejected(address1, new SocketConnection());
assertConnectionAccepted(address1, new SecureSocketConnection());
}
Aggregations