Skip to content

Commit

Permalink
Replace AbstractVerticle -> VerticleBase
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Oct 22, 2024
1 parent 6d3308a commit 784e23f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/main/java/examples/Examples.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package examples;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientResponse;
Expand Down Expand Up @@ -153,7 +153,7 @@ void some_test(Vertx vertx, VertxTestContext testContext) {
}
}

class HttpServerVerticle extends AbstractVerticle {
class HttpServerVerticle extends VerticleBase {
}

class DTest {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/examples/LifecycleExampleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package examples;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
import io.vertx.junit5.VertxExtension;
import io.vertx.junit5.VertxTestContext;
Expand Down Expand Up @@ -63,6 +63,6 @@ void lastChecks(Vertx vertx) {
}
}

class SomeVerticle extends AbstractVerticle {
class SomeVerticle extends VerticleBase {

}
19 changes: 6 additions & 13 deletions src/test/java/io/vertx/junit5/tests/IntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

package io.vertx.junit5.tests;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Promise;
import io.vertx.core.Vertx;
import io.vertx.core.*;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientResponse;
import io.vertx.core.http.HttpMethod;
Expand All @@ -42,19 +40,14 @@
@DisplayName("Integration tests")
class IntegrationTest {

static class HttpServerVerticle extends AbstractVerticle {
static class HttpServerVerticle extends VerticleBase {

@Override
public void start(Promise<Void> startFuture) throws Exception {
vertx.createHttpServer()
public Future<?> start() throws Exception {
return vertx
.createHttpServer()
.requestHandler(request -> request.response().end("Plop"))
.listen(8080).onComplete(ar -> {
if (ar.succeeded()) {
startFuture.complete();
} else {
startFuture.fail(ar.cause());
}
});
.listen(8080);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/io/vertx/junit5/tests/VertxExtensionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package io.vertx.junit5.tests;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.VerticleBase;
import io.vertx.core.Vertx;
import io.vertx.junit5.Checkpoint;
import io.vertx.junit5.Timeout;
Expand Down Expand Up @@ -272,7 +272,7 @@ void checkTimeoutFailureTestWithIntermediateAsyncVerifier() {
}
}

private static class UselessVerticle extends AbstractVerticle {
private static class UselessVerticle extends VerticleBase {
}

@Nested
Expand Down

0 comments on commit 784e23f

Please sign in to comment.