BAEL-702 - Intro to Vert.x formatting changes
This commit is contained in:
@@ -34,13 +34,13 @@ public class RestServiceVerticleTest {
|
||||
final Async async = testContext.async();
|
||||
|
||||
vertx.createHttpClient()
|
||||
.getNow(8080, "localhost", "/api/baeldung/articles/article/12345", response -> {
|
||||
response.handler(responseBody -> {
|
||||
testContext.assertTrue(responseBody.toString()
|
||||
.contains("\"id\" : \"12345\""));
|
||||
async.complete();
|
||||
.getNow(8080, "localhost", "/api/baeldung/articles/article/12345", response -> {
|
||||
response.handler(responseBody -> {
|
||||
testContext.assertTrue(responseBody.toString()
|
||||
.contains("\"id\" : \"12345\""));
|
||||
async.complete();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ public class SimpleServerVerticleTest {
|
||||
public void setup(TestContext testContext) {
|
||||
vertx = Vertx.vertx();
|
||||
|
||||
vertx.deployVerticle(SimpleServerVerticle.class.getName(),
|
||||
testContext.asyncAssertSuccess());
|
||||
vertx.deployVerticle(SimpleServerVerticle.class.getName(),
|
||||
testContext.asyncAssertSuccess());
|
||||
}
|
||||
|
||||
@After
|
||||
@@ -34,13 +34,13 @@ public class SimpleServerVerticleTest {
|
||||
final Async async = testContext.async();
|
||||
|
||||
vertx.createHttpClient()
|
||||
.getNow(8080, "localhost", "/", response -> {
|
||||
response.handler(responseBody -> {
|
||||
testContext.assertTrue(responseBody.toString()
|
||||
.contains("Welcome"));
|
||||
async.complete();
|
||||
.getNow(8080, "localhost", "/", response -> {
|
||||
response.handler(responseBody -> {
|
||||
testContext.assertTrue(responseBody.toString()
|
||||
.contains("Welcome"));
|
||||
async.complete();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user