File tree Expand file tree Collapse file tree
vertx-core/src/test/java/io/vertx Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,17 @@ public CountDownLatch asLatch(int count) {
2828 return new CountingCheckpoint (this , count );
2929 }
3030
31+ public Completable <Void > invert () {
32+ return (result , failure ) -> {
33+ if (failure == null ) {
34+ failure = new AssertionError ("Expected a failure" );
35+ } else {
36+ failure = null ;
37+ }
38+ Checkpoint .this .complete (null , failure );
39+ };
40+ }
41+
3142 public void await () {
3243 try {
3344 latch .await (10 , TimeUnit .SECONDS );
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public enum ReportMode {
7777 public static final boolean USE_DOMAIN_SOCKETS = Boolean .getBoolean ("vertx.useDomainSockets" );
7878 public static final boolean USE_JAVA_MODULES = VertxTestBase .class .getModule ().isNamed ();
7979 private static final Logger log = LoggerFactory .getLogger (VertxTestBase .class );
80- protected static final String [] ENABLED_CIPHER_SUITES ;
80+ public static final String [] ENABLED_CIPHER_SUITES ;
8181
8282 static {
8383
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public class VertxTestBase2 {
1414 protected Vertx vertx ;
1515
1616 @ Before
17- public void setUp (Vertx vertx ) {
17+ public void setUp (Vertx vertx ) throws Exception {
1818 this .vertx = vertx ;
1919 }
2020}
You can’t perform that action at this time.
0 commit comments