# HG changeset patch # User prappo # Date 1518696492 0 # Node ID c99ed32a4d12048b7494a9ad555cf30742115803 # Parent fe88abe462c9ac89db2db63c10572251b02451ff http-client-branch: (WebSocket) fixing sloppy commit diff -r fe88abe462c9 -r c99ed32a4d12 test/jdk/java/net/httpclient/websocket/WebSocketTest.java --- a/test/jdk/java/net/httpclient/websocket/WebSocketTest.java Thu Feb 15 10:23:00 2018 +0000 +++ b/test/jdk/java/net/httpclient/websocket/WebSocketTest.java Thu Feb 15 12:08:12 2018 +0000 @@ -557,6 +557,7 @@ WebSocket.Listener listener = new WebSocket.Listener() { + List collected = new ArrayList<>(); StringBuilder text = new StringBuilder(); @Override @@ -584,7 +585,17 @@ } private void processWholeText(String string) { + System.out.println(string); // -- your code here -- + collected.add(string); + } + + @Override + public CompletionStage onClose(WebSocket webSocket, + int statusCode, + String reason) { + actual.complete(collected); + return null; } };