test/jdk/java/net/httpclient/websocket/jdk.incubator.httpclient/jdk/incubator/http/internal/websocket/TestSupport.java
branchhttp-client-branch
changeset 55832 2585c47a1a55
parent 55824 b922df193260
child 55908 a36a236e55d8
equal deleted inserted replaced
55831:deaf861d440e 55832:2585c47a1a55
   463             code.run();
   463             code.run();
   464         } catch (Throwable t) {
   464         } catch (Throwable t) {
   465             caught = t;
   465             caught = t;
   466         }
   466         }
   467         if (predicate.test(caught)) {
   467         if (predicate.test(caught)) {
       
   468             System.out.println("Got expected exception: " + caught);
   468             return caught;
   469             return caught;
   469         }
   470         }
   470         if (caught == null) {
   471         if (caught == null) {
   471             throw new AssertionFailedException("No exception was thrown");
   472             throw new AssertionFailedException("No exception was thrown");
   472         }
   473         }