Search in sources :

Example 1 with SecureWebSocketConnection

use of org.neo4j.bolt.v1.transport.socket.client.SecureWebSocketConnection 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());
}
Also used : SecureSocketConnection(org.neo4j.bolt.v1.transport.socket.client.SecureSocketConnection) SecureWebSocketConnection(org.neo4j.bolt.v1.transport.socket.client.SecureWebSocketConnection) SecureWebSocketConnection(org.neo4j.bolt.v1.transport.socket.client.SecureWebSocketConnection) WebSocketConnection(org.neo4j.bolt.v1.transport.socket.client.WebSocketConnection) SocketConnection(org.neo4j.bolt.v1.transport.socket.client.SocketConnection) SecureWebSocketConnection(org.neo4j.bolt.v1.transport.socket.client.SecureWebSocketConnection) SecureSocketConnection(org.neo4j.bolt.v1.transport.socket.client.SecureSocketConnection) WebSocketConnection(org.neo4j.bolt.v1.transport.socket.client.WebSocketConnection) HostnamePort(org.neo4j.helpers.HostnamePort) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 SecureSocketConnection (org.neo4j.bolt.v1.transport.socket.client.SecureSocketConnection)1 SecureWebSocketConnection (org.neo4j.bolt.v1.transport.socket.client.SecureWebSocketConnection)1 SocketConnection (org.neo4j.bolt.v1.transport.socket.client.SocketConnection)1 WebSocketConnection (org.neo4j.bolt.v1.transport.socket.client.WebSocketConnection)1 HostnamePort (org.neo4j.helpers.HostnamePort)1