test/src/main/java/de/taimos/dvalin/test/jaxrs/APITest.java
/**
     * creates a web socket connection to the given path using the supplied client socket adapter
     *
     * @param path   the path of the websocket target
     * @param socket the client socket to use
     * @return the created {@link WebSocketClient}
     * @throws RuntimeException if connection fails
     */
creates a web socket connection to the given path using the supplied client socket adapter
@param path   the path of the websocket target
@param socket the client socket to use
@return the created  WebSocketClient
@throws RuntimeException if connection fails
creates a web socket connection to the given path using the supplied client socket adapter @param path the path of the websocket target @param socket the client socket to use @return the created WebSocketClient @throws RuntimeException if connection fails
protected WebSocketClient openWebsocket(String path, ClientSocketAdapter socket) {
        try {
            WebSocketClient cl = new WebSocketClient();
            cl.start();
            ClientUpgradeRequest request = new ClientUpgradeRequest();
            socket.modifyRequest(request);
            Future<Session> socketSession = cl.connect(socket, URI.create(this.getWebSocketURL() + path), request);
            socketSession.get(5, TimeUnit.SECONDS);
            return cl;
        } catch (Exception e) {
            throw new RuntimeException("WebSocket failed", e);
        }
    }
protected WebSocketClient openWebsocket ( String path , ClientSocketAdapter socket ) { try { WebSocketClient cl = new WebSocketClient ( ) ; cl . start ( ) ; ClientUpgradeRequest request = new ClientUpgradeRequest ( ) ; socket . modifyRequest ( request ) ; Future < Session > socketSession = cl . connect ( socket , URI . create ( this . getWebSocketURL ( ) + path ) , request ) ; socketSession . get ( 5 , TimeUnit . SECONDS ) ; return cl ; } catch ( Exception e ) { throw new RuntimeException ( "WebSocket failed" , e ) ; } }
creates a web socket connection to the given path using the supplied client socket adapter
 @param path   the path of the websocket target
 @param socket the client socket to use
 @return the created {@link WebSocketClient}
 @throws RuntimeException if connection fails
creates a web socket connection to the given path using the supplied client socket adapter @param path the path of the websocket target @param socket the client socket to use @return the created { @link WebSocketClient } @throws RuntimeException if connection fails