test/jdk/java/net/httpclient/websocket/MockListener.java
branchhttp-client-branch
changeset 56322 316be30d078d
parent 56321 4c3e5976942a
child 56451 9585061fdb04
equal deleted inserted replaced
56321:4c3e5976942a 56322:316be30d078d
   178     }
   178     }
   179 
   179 
   180     @Override
   180     @Override
   181     public void onError(WebSocket webSocket, Throwable error) {
   181     public void onError(WebSocket webSocket, Throwable error) {
   182         System.out.printf("onError(%s, %s)%n", webSocket, error);
   182         System.out.printf("onError(%s, %s)%n", webSocket, error);
       
   183         error.printStackTrace(System.out);
   183         OnError inv = new OnError(webSocket, error == null ? null : error.getClass());
   184         OnError inv = new OnError(webSocket, error == null ? null : error.getClass());
   184         synchronized (invocations) {
   185         synchronized (invocations) {
   185             invocations.add(inv);
   186             invocations.add(inv);
   186         }
   187         }
   187         if (collectUntil.test(inv)) {
   188         if (collectUntil.test(inv)) {