test/jdk/java/net/httpclient/websocket/jdk.incubator.httpclient/jdk/incubator/http/internal/websocket/TestSupport.java
equal
deleted
inserted
replaced
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 } |