Skip to content

Commit 1240965

Browse files
committed
Rewrite NetTest with VertxRunner
1 parent 8279142 commit 1240965

4 files changed

Lines changed: 1102 additions & 1182 deletions

File tree

vertx-core/src/test/java/io/vertx/test/core/Checkpoint.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

vertx-core/src/test/java/io/vertx/test/core/VertxTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

vertx-core/src/test/java/io/vertx/test/core/VertxTestBase2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)